Skip to content

Commit 9d15379

Browse files
authored
refactor(policy)!: use filters instead of explicit errors in TCP and TLS protocols (#405)
This change removes the RouteError and Invalid types from the routes and backends of TLS and TCP protocols and moves to using filters. Signed-off-by: Zahari Dichev <[email protected]>
1 parent 074f588 commit 9d15379

24 files changed

+1294
-1278
lines changed

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,19 @@ inbound = [
2828
"tonic/codegen",
2929
]
3030
outbound = [
31-
"tls-route",
32-
"grpc-route",
3331
"destination",
32+
"grpc-route",
3433
"http-route",
3534
"meta",
3635
"net",
36+
"opaque-route",
3737
"prost-types",
38+
"tls-route",
3839
"tonic/codegen",
3940
]
4041
meta = []
4142
net = ["ipnet", "thiserror"]
43+
opaque-route = []
4244
tap = ["h2", "http-types", "net", "prost-types", "tonic/codegen"]
4345
tls-route = []
4446

go/destination/destination.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/destination/destination_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/grpc_route/grpc_route.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/http_route/http_route.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/http_types/http_types.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/identity/identity.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/identity/identity_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/inbound/inbound.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/inbound/inbound_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/meta/meta.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/net/net.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/opaque_route/opaque_route.pb.go

Lines changed: 170 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)