Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing query between egress filter and filter gateway. #2097

Open
wants to merge 77 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 76 commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
8d7ad09
Allow passing query between egress filter and filter gateway. (#1896)
mtanig Jun 29, 2023
d440541
style: Format code with prettier and gofumpt
deepsource-autofix[bot] Jun 29, 2023
4e437a5
update config type
kevindiu Jun 29, 2023
9276be4
Merge branch 'main' into feature/egress-gateway/add-egress-query
kevindiu Oct 6, 2023
84858ab
fix example client
kevindiu Oct 10, 2023
1bd59a0
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Oct 16, 2023
5868c55
refactor: example code
hlts2 Oct 16, 2023
836ae35
fix: execute make format
hlts2 Oct 16, 2023
7700e8d
fix: refactor example code
hlts2 Oct 17, 2023
8f4003b
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Oct 24, 2023
5c42cb9
Update example/client/gateway/filter/README.md
hlts2 Oct 24, 2023
7d32396
Update example/client/gateway/filter/README.md
hlts2 Oct 24, 2023
f274d39
Update example/client/gateway/filter/README.md
hlts2 Oct 24, 2023
897673e
Update example/client/gateway/filter/README.md
hlts2 Oct 24, 2023
1ab1494
Update example/client/gateway/filter/README.md
hlts2 Oct 24, 2023
28fe6ce
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Nov 16, 2023
aa3f6c4
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Nov 21, 2023
7c6c179
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Nov 28, 2023
c7a94e0
fix: make proto/all format
hlts2 Nov 28, 2023
37ccbd1
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Dec 4, 2023
f79cabe
fix: make proto/all format
hlts2 Dec 4, 2023
ec02a57
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Dec 7, 2023
d3d1763
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Dec 7, 2023
32cdea9
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Dec 7, 2023
46499bd
fix: make format
hlts2 Dec 7, 2023
d57bdbc
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Dec 7, 2023
0400d04
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Dec 7, 2023
4fd422f
fix: update schema and format
hlts2 Dec 7, 2023
015cf60
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Dec 7, 2023
d4680d1
fix: make proto/all format
hlts2 Dec 7, 2023
169f799
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Dec 12, 2023
2916fe9
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Dec 12, 2023
d328ab3
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Dec 26, 2023
5413645
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Jan 9, 2024
31b3a14
fix: schema and proto update and format
hlts2 Jan 9, 2024
8f1512f
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Jan 9, 2024
3bfd745
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Jan 10, 2024
6829a64
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Jan 15, 2024
ae34b8a
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Jan 16, 2024
16c25cd
Add Filter query configuration to Continuous Benchmark Job (#2296)
hlts2 Jan 19, 2024
91baa91
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Jan 22, 2024
e161aa2
fix: make proto/all format
hlts2 Jan 22, 2024
45853e9
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Jan 23, 2024
28434e1
Merge branch 'main' into feature/egress-gateway/add-egress-query
vankichi Jan 31, 2024
c1861e7
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Feb 5, 2024
b954c60
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Mar 4, 2024
6afac73
fix: make proto/all format
hlts2 Mar 4, 2024
2423950
fix: makge changes to build ci-container
hlts2 Mar 4, 2024
952448c
Revert "fix: makge changes to build ci-container"
hlts2 Mar 4, 2024
c571363
fix: error of ci and add comment about import path
hlts2 Mar 4, 2024
ec0dee5
fix: make format and reviewdog warning
hlts2 Mar 4, 2024
5558531
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Mar 12, 2024
99be6c8
fix: make proto/all format
hlts2 Mar 12, 2024
d203299
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 May 13, 2024
f77297d
fix: make proto/all format
hlts2 May 13, 2024
ffecb7e
fix: add new line for debug
hlts2 May 13, 2024
6667ced
Revert "fix: add new line for debug"
hlts2 May 13, 2024
a1cbcf0
fix: use glg fatal function
hlts2 May 13, 2024
ca1b7fc
Update example/server/egress-filter/main.go
hlts2 May 13, 2024
42895ac
Update example/client/gateway/filter/main.go
hlts2 May 13, 2024
ca888dd
fix: deleted unnecessary comment and variable
hlts2 May 13, 2024
a8dec7e
fix: fix coderabbit warning
hlts2 May 13, 2024
0bf1af8
fix: add query configuration to client-api-confi.md
hlts2 May 13, 2024
ad034dc
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 May 27, 2024
e590161
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Jun 10, 2024
799a5f1
fix: add filter configuration to api docs
hlts2 Jun 10, 2024
cafd16e
style: format code with Gofumpt and Prettier
deepsource-autofix[bot] Jun 10, 2024
266f35b
fix: update filter-gateway api document
hlts2 Jun 10, 2024
844c7cb
style: format code with Gofumpt and Prettier
deepsource-autofix[bot] Jun 10, 2024
eac4d2c
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Sep 13, 2024
b406be6
fix: make proto/all format
hlts2 Sep 13, 2024
a5544ca
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Sep 30, 2024
d9ca20c
fix: make proto/all format
hlts2 Sep 30, 2024
a19e8e6
fix: build error
hlts2 Sep 30, 2024
a7fbbd5
fix: resolve deprecated code
hlts2 Sep 30, 2024
927d897
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Sep 30, 2024
2e308e9
Merge branch 'main' into feature/egress-gateway/add-egress-query
hlts2 Oct 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 99 additions & 41 deletions apis/docs/v1/docs.md

Large diffs are not rendered by default.

60 changes: 32 additions & 28 deletions apis/grpc/v1/filter/egress/egress_filter.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 18 additions & 18 deletions apis/grpc/v1/filter/egress/egress_filter_vtproto.pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ const _ = grpc.SupportPackageIsVersion7
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type FilterClient interface {
// Represent the RPC to filter the distance.
FilterDistance(ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption) (*payload.Object_Distance, error)
FilterDistance(ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption) (*payload.Filter_DistanceResponse, error)
// Represent the RPC to filter the vector.
FilterVector(ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption) (*payload.Object_Vector, error)
FilterVector(ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption) (*payload.Filter_VectorResponse, error)
}

type filterClient struct {
Expand All @@ -57,9 +57,9 @@ func NewFilterClient(cc grpc.ClientConnInterface) FilterClient {
}

func (c *filterClient) FilterDistance(
ctx context.Context, in *payload.Object_Distance, opts ...grpc.CallOption,
) (*payload.Object_Distance, error) {
out := new(payload.Object_Distance)
ctx context.Context, in *payload.Filter_DistanceRequest, opts ...grpc.CallOption,
) (*payload.Filter_DistanceResponse, error) {
out := new(payload.Filter_DistanceResponse)
err := c.cc.Invoke(ctx, "/filter.egress.v1.Filter/FilterDistance", in, out, opts...)
if err != nil {
return nil, err
Expand All @@ -68,9 +68,9 @@ func (c *filterClient) FilterDistance(
}

func (c *filterClient) FilterVector(
ctx context.Context, in *payload.Object_Vector, opts ...grpc.CallOption,
) (*payload.Object_Vector, error) {
out := new(payload.Object_Vector)
ctx context.Context, in *payload.Filter_VectorRequest, opts ...grpc.CallOption,
) (*payload.Filter_VectorResponse, error) {
out := new(payload.Filter_VectorResponse)
err := c.cc.Invoke(ctx, "/filter.egress.v1.Filter/FilterVector", in, out, opts...)
if err != nil {
return nil, err
Expand All @@ -83,24 +83,24 @@ func (c *filterClient) FilterVector(
// for forward compatibility
type FilterServer interface {
// Represent the RPC to filter the distance.
FilterDistance(context.Context, *payload.Object_Distance) (*payload.Object_Distance, error)
FilterDistance(context.Context, *payload.Filter_DistanceRequest) (*payload.Filter_DistanceResponse, error)
// Represent the RPC to filter the vector.
FilterVector(context.Context, *payload.Object_Vector) (*payload.Object_Vector, error)
FilterVector(context.Context, *payload.Filter_VectorRequest) (*payload.Filter_VectorResponse, error)
mustEmbedUnimplementedFilterServer()
}

// UnimplementedFilterServer must be embedded to have forward compatible implementations.
type UnimplementedFilterServer struct{}

func (UnimplementedFilterServer) FilterDistance(
context.Context, *payload.Object_Distance,
) (*payload.Object_Distance, error) {
context.Context, *payload.Filter_DistanceRequest,
) (*payload.Filter_DistanceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FilterDistance not implemented")
}

func (UnimplementedFilterServer) FilterVector(
context.Context, *payload.Object_Vector,
) (*payload.Object_Vector, error) {
context.Context, *payload.Filter_VectorRequest,
) (*payload.Filter_VectorResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FilterVector not implemented")
}
func (UnimplementedFilterServer) mustEmbedUnimplementedFilterServer() {}
Expand All @@ -119,7 +119,7 @@ func RegisterFilterServer(s grpc.ServiceRegistrar, srv FilterServer) {
func _Filter_FilterDistance_Handler(
srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor,
) (any, error) {
in := new(payload.Object_Distance)
in := new(payload.Filter_DistanceRequest)
if err := dec(in); err != nil {
return nil, err
}
Expand All @@ -131,15 +131,15 @@ func _Filter_FilterDistance_Handler(
FullMethod: "/filter.egress.v1.Filter/FilterDistance",
}
handler := func(ctx context.Context, req any) (any, error) {
return srv.(FilterServer).FilterDistance(ctx, req.(*payload.Object_Distance))
return srv.(FilterServer).FilterDistance(ctx, req.(*payload.Filter_DistanceRequest))
}
return interceptor(ctx, in, info, handler)
}

func _Filter_FilterVector_Handler(
srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor,
) (any, error) {
in := new(payload.Object_Vector)
in := new(payload.Filter_VectorRequest)
if err := dec(in); err != nil {
return nil, err
}
Expand All @@ -151,7 +151,7 @@ func _Filter_FilterVector_Handler(
FullMethod: "/filter.egress.v1.Filter/FilterVector",
}
handler := func(ctx context.Context, req any) (any, error) {
return srv.(FilterServer).FilterVector(ctx, req.(*payload.Object_Vector))
return srv.(FilterServer).FilterVector(ctx, req.(*payload.Filter_VectorRequest))
}
return interceptor(ctx, in, info, handler)
}
Expand Down
Loading
Loading