Documentation ¶
Index ¶
- Variables
- func RegisterGreetServiceServer(s grpc_go.ServiceRegistrar, srv GreetServiceServer)
- type GreetServiceClient
- type GreetServiceClientImpl
- type GreetServiceServer
- type GreetService_GreetClientStreamClient
- type GreetService_GreetClientStreamServer
- type GreetService_GreetServerStreamClient
- type GreetService_GreetServerStreamServer
- type GreetService_GreetStreamClient
- type GreetService_GreetStreamServer
- type UnimplementedGreetServiceServer
- func (UnimplementedGreetServiceServer) Greet(context.Context, *proto.GreetRequest) (*proto.GreetResponse, error)
- func (UnimplementedGreetServiceServer) GreetClientStream(GreetService_GreetClientStreamServer) error
- func (UnimplementedGreetServiceServer) GreetServerStream(*proto.GreetServerStreamRequest, GreetService_GreetServerStreamServer) error
- func (UnimplementedGreetServiceServer) GreetStream(GreetService_GreetStreamServer) error
- func (s *UnimplementedGreetServiceServer) XXX_GetProxyImpl() protocol.Invoker
- func (s *UnimplementedGreetServiceServer) XXX_InterfaceName() string
- func (s *UnimplementedGreetServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc
- func (s *UnimplementedGreetServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)
- type UnsafeGreetServiceServer
Constants ¶
This section is empty.
Variables ¶
var GreetService_ServiceDesc = grpc_go.ServiceDesc{ ServiceName: "greet.GreetService", HandlerType: (*GreetServiceServer)(nil), Methods: []grpc_go.MethodDesc{ { MethodName: "Greet", Handler: _GreetService_Greet_Handler, }, }, Streams: []grpc_go.StreamDesc{ { StreamName: "GreetStream", Handler: _GreetService_GreetStream_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "GreetClientStream", Handler: _GreetService_GreetClientStream_Handler, ClientStreams: true, }, { StreamName: "GreetServerStream", Handler: _GreetService_GreetServerStream_Handler, ServerStreams: true, }, }, Metadata: "greet.proto", }
GreetService_ServiceDesc is the grpc_go.ServiceDesc for GreetService service. It's only intended for direct use with grpc_go.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGreetServiceServer ¶
func RegisterGreetServiceServer(s grpc_go.ServiceRegistrar, srv GreetServiceServer)
Types ¶
type GreetServiceClient ¶
type GreetServiceClient interface { Greet(ctx context.Context, in *proto.GreetRequest, opts ...grpc_go.CallOption) (*proto.GreetResponse, common.ErrorWithAttachment) GreetStream(ctx context.Context, opts ...grpc_go.CallOption) (GreetService_GreetStreamClient, error) GreetClientStream(ctx context.Context, opts ...grpc_go.CallOption) (GreetService_GreetClientStreamClient, error) GreetServerStream(ctx context.Context, in *proto.GreetServerStreamRequest, opts ...grpc_go.CallOption) (GreetService_GreetServerStreamClient, error) }
GreetServiceClient is the client API for GreetService service.
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.
func NewGreetServiceClient ¶
func NewGreetServiceClient(cc *triple.TripleConn) GreetServiceClient
type GreetServiceClientImpl ¶
type GreetServiceClientImpl struct { Greet func(ctx context.Context, in *proto.GreetRequest) (*proto.GreetResponse, error) GreetStream func(ctx context.Context) (GreetService_GreetStreamClient, error) GreetClientStream func(ctx context.Context) (GreetService_GreetClientStreamClient, error) GreetServerStream func(ctx context.Context, in *proto.GreetServerStreamRequest) (GreetService_GreetServerStreamClient, error) }
func (*GreetServiceClientImpl) GetDubboStub ¶
func (c *GreetServiceClientImpl) GetDubboStub(cc *triple.TripleConn) GreetServiceClient
func (*GreetServiceClientImpl) XXX_InterfaceName ¶
func (c *GreetServiceClientImpl) XXX_InterfaceName() string
type GreetServiceServer ¶
type GreetServiceServer interface { Greet(context.Context, *proto.GreetRequest) (*proto.GreetResponse, error) GreetStream(GreetService_GreetStreamServer) error GreetClientStream(GreetService_GreetClientStreamServer) error GreetServerStream(*proto.GreetServerStreamRequest, GreetService_GreetServerStreamServer) error // contains filtered or unexported methods }
GreetServiceServer is the server API for GreetService service. All implementations must embed UnimplementedGreetServiceServer for forward compatibility
type GreetService_GreetClientStreamClient ¶
type GreetService_GreetClientStreamClient interface { Send(*proto.GreetClientStreamRequest) error CloseAndRecv() (*proto.GreetClientStreamResponse, error) grpc_go.ClientStream }
type GreetService_GreetClientStreamServer ¶
type GreetService_GreetClientStreamServer interface { SendAndClose(*proto.GreetClientStreamResponse) error Recv() (*proto.GreetClientStreamRequest, error) grpc_go.ServerStream }
type GreetService_GreetServerStreamClient ¶
type GreetService_GreetServerStreamClient interface { Recv() (*proto.GreetServerStreamResponse, error) grpc_go.ClientStream }
type GreetService_GreetServerStreamServer ¶
type GreetService_GreetServerStreamServer interface { Send(*proto.GreetServerStreamResponse) error grpc_go.ServerStream }
type GreetService_GreetStreamClient ¶
type GreetService_GreetStreamClient interface { Send(*proto.GreetStreamRequest) error Recv() (*proto.GreetStreamResponse, error) grpc_go.ClientStream }
type GreetService_GreetStreamServer ¶
type GreetService_GreetStreamServer interface { Send(*proto.GreetStreamResponse) error Recv() (*proto.GreetStreamRequest, error) grpc_go.ServerStream }
type UnimplementedGreetServiceServer ¶
type UnimplementedGreetServiceServer struct {
// contains filtered or unexported fields
}
UnimplementedGreetServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGreetServiceServer) Greet ¶
func (UnimplementedGreetServiceServer) Greet(context.Context, *proto.GreetRequest) (*proto.GreetResponse, error)
func (UnimplementedGreetServiceServer) GreetClientStream ¶
func (UnimplementedGreetServiceServer) GreetClientStream(GreetService_GreetClientStreamServer) error
func (UnimplementedGreetServiceServer) GreetServerStream ¶
func (UnimplementedGreetServiceServer) GreetServerStream(*proto.GreetServerStreamRequest, GreetService_GreetServerStreamServer) error
func (UnimplementedGreetServiceServer) GreetStream ¶
func (UnimplementedGreetServiceServer) GreetStream(GreetService_GreetStreamServer) error
func (*UnimplementedGreetServiceServer) XXX_GetProxyImpl ¶
func (s *UnimplementedGreetServiceServer) XXX_GetProxyImpl() protocol.Invoker
func (*UnimplementedGreetServiceServer) XXX_InterfaceName ¶
func (s *UnimplementedGreetServiceServer) XXX_InterfaceName() string
func (*UnimplementedGreetServiceServer) XXX_ServiceDesc ¶
func (s *UnimplementedGreetServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc
func (*UnimplementedGreetServiceServer) XXX_SetProxyImpl ¶
func (s *UnimplementedGreetServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)
type UnsafeGreetServiceServer ¶
type UnsafeGreetServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGreetServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GreetServiceServer will result in compilation errors.