Skip to content

Commit

Permalink
[REVERTTHIS]
Browse files Browse the repository at this point in the history
  • Loading branch information
ykadowak committed Dec 7, 2023
1 parent 405e499 commit 38a54f0
Show file tree
Hide file tree
Showing 34 changed files with 2,477 additions and 811 deletions.
1,043 changes: 540 additions & 503 deletions apis/docs/v1/docs.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apis/grpc/v1/agent/core/agent.pb.go

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

2 changes: 1 addition & 1 deletion apis/grpc/v1/agent/sidecar/sidecar.pb.go

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

47 changes: 29 additions & 18 deletions apis/grpc/v1/discoverer/discoverer.pb.go

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

38 changes: 38 additions & 0 deletions apis/grpc/v1/discoverer/discoverer_vtproto.pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ type DiscovererClient interface {
Pods(ctx context.Context, in *payload.Discoverer_Request, opts ...grpc.CallOption) (*payload.Info_Pods, error)
// Represent the RPC to get the node information.
Nodes(ctx context.Context, in *payload.Discoverer_Request, opts ...grpc.CallOption) (*payload.Info_Nodes, error)
// Represent the RPC to get the readreplica svc information.
ReadReplicaSvcs(ctx context.Context, in *payload.Discoverer_ReadReplicaSvcsRequest, opts ...grpc.CallOption) (*payload.Info_ReadReplicaSvcs, error)
}

type discovererClient struct {
Expand Down Expand Up @@ -74,6 +76,15 @@ func (c *discovererClient) Nodes(ctx context.Context, in *payload.Discoverer_Req
return out, nil
}

func (c *discovererClient) ReadReplicaSvcs(ctx context.Context, in *payload.Discoverer_ReadReplicaSvcsRequest, opts ...grpc.CallOption) (*payload.Info_ReadReplicaSvcs, error) {
out := new(payload.Info_ReadReplicaSvcs)
err := c.cc.Invoke(ctx, "/discoverer.v1.Discoverer/ReadReplicaSvcs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}

// DiscovererServer is the server API for Discoverer service.
// All implementations must embed UnimplementedDiscovererServer
// for forward compatibility
Expand All @@ -82,6 +93,8 @@ type DiscovererServer interface {
Pods(context.Context, *payload.Discoverer_Request) (*payload.Info_Pods, error)
// Represent the RPC to get the node information.
Nodes(context.Context, *payload.Discoverer_Request) (*payload.Info_Nodes, error)
// Represent the RPC to get the readreplica svc information.
ReadReplicaSvcs(context.Context, *payload.Discoverer_ReadReplicaSvcsRequest) (*payload.Info_ReadReplicaSvcs, error)
mustEmbedUnimplementedDiscovererServer()
}

Expand All @@ -95,6 +108,9 @@ func (UnimplementedDiscovererServer) Pods(context.Context, *payload.Discoverer_R
func (UnimplementedDiscovererServer) Nodes(context.Context, *payload.Discoverer_Request) (*payload.Info_Nodes, error) {
return nil, status.Errorf(codes.Unimplemented, "method Nodes not implemented")
}
func (UnimplementedDiscovererServer) ReadReplicaSvcs(context.Context, *payload.Discoverer_ReadReplicaSvcsRequest) (*payload.Info_ReadReplicaSvcs, error) {
return nil, status.Errorf(codes.Unimplemented, "method ReadReplicaSvcs not implemented")
}
func (UnimplementedDiscovererServer) mustEmbedUnimplementedDiscovererServer() {}

// UnsafeDiscovererServer may be embedded to opt out of forward compatibility for this service.
Expand Down Expand Up @@ -144,6 +160,24 @@ func _Discoverer_Nodes_Handler(srv interface{}, ctx context.Context, dec func(in
return interceptor(ctx, in, info, handler)
}

func _Discoverer_ReadReplicaSvcs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(payload.Discoverer_ReadReplicaSvcsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DiscovererServer).ReadReplicaSvcs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/discoverer.v1.Discoverer/ReadReplicaSvcs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DiscovererServer).ReadReplicaSvcs(ctx, req.(*payload.Discoverer_ReadReplicaSvcsRequest))
}
return interceptor(ctx, in, info, handler)
}

// Discoverer_ServiceDesc is the grpc.ServiceDesc for Discoverer service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
Expand All @@ -159,6 +193,10 @@ var Discoverer_ServiceDesc = grpc.ServiceDesc{
MethodName: "Nodes",
Handler: _Discoverer_Nodes_Handler,
},
{
MethodName: "ReadReplicaSvcs",
Handler: _Discoverer_ReadReplicaSvcs_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "apis/proto/v1/discoverer/discoverer.proto",
Expand Down
2 changes: 1 addition & 1 deletion 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.

2 changes: 1 addition & 1 deletion apis/grpc/v1/filter/ingress/ingress_filter.pb.go

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

2 changes: 1 addition & 1 deletion apis/grpc/v1/manager/index/index_manager.pb.go

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

Loading

0 comments on commit 38a54f0

Please sign in to comment.