update ingress.proto
This commit is contained in:
@ -1,4 +1,8 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.15.8
|
||||
// source: ingress.proto
|
||||
|
||||
package proto
|
||||
|
||||
@ -19,6 +23,7 @@ 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 IngressClient interface {
|
||||
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error)
|
||||
Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetReply, error)
|
||||
}
|
||||
|
||||
type ingressClient struct {
|
||||
@ -38,11 +43,21 @@ func (c *ingressClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.Ca
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *ingressClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetReply, error) {
|
||||
out := new(SetReply)
|
||||
err := c.cc.Invoke(ctx, "/proto.Ingress/Set", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// IngressServer is the server API for Ingress service.
|
||||
// All implementations must embed UnimplementedIngressServer
|
||||
// for forward compatibility
|
||||
type IngressServer interface {
|
||||
Get(context.Context, *GetRequest) (*GetReply, error)
|
||||
Set(context.Context, *SetRequest) (*SetReply, error)
|
||||
mustEmbedUnimplementedIngressServer()
|
||||
}
|
||||
|
||||
@ -53,6 +68,9 @@ type UnimplementedIngressServer struct {
|
||||
func (UnimplementedIngressServer) Get(context.Context, *GetRequest) (*GetReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedIngressServer) Set(context.Context, *SetRequest) (*SetReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Set not implemented")
|
||||
}
|
||||
func (UnimplementedIngressServer) mustEmbedUnimplementedIngressServer() {}
|
||||
|
||||
// UnsafeIngressServer may be embedded to opt out of forward compatibility for this service.
|
||||
@ -84,6 +102,24 @@ func _Ingress_Get_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Ingress_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SetRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(IngressServer).Set(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/proto.Ingress/Set",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(IngressServer).Set(ctx, req.(*SetRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// Ingress_ServiceDesc is the grpc.ServiceDesc for Ingress service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@ -95,6 +131,10 @@ var Ingress_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "Get",
|
||||
Handler: _Ingress_Get_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Set",
|
||||
Handler: _Ingress_Set_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "ingress.proto",
|
||||
|
Reference in New Issue
Block a user