Documentation ¶
Index ¶
- Variables
- func AddExampleServiceServerRegistryTags(server server.Server)
- func RegisterExampleServiceServer(s grpc.ServiceRegistrar, srv ExampleServiceServer)
- type Empty
- type ExampleServiceClient
- type ExampleServiceGSClient
- type ExampleServiceServer
- type ExampleService_BiDirectionalStreamClient
- type ExampleService_BiDirectionalStreamServer
- type ExampleService_ClientStreamClient
- type ExampleService_ClientStreamServer
- type ExampleService_ServerStreamClient
- type ExampleService_ServerStreamServer
- type NoServiceMessage
- type Request
- type Response
- type UnimplementedExampleServiceServer
- func (UnimplementedExampleServiceServer) BiDirectionalStream(ExampleService_BiDirectionalStreamServer) error
- func (UnimplementedExampleServiceServer) ClientStream(ExampleService_ClientStreamServer) error
- func (UnimplementedExampleServiceServer) NoReturn(context.Context, *empty.Empty) (*empty.Empty, error)
- func (UnimplementedExampleServiceServer) ServerStream(*Request, ExampleService_ServerStreamServer) error
- func (UnimplementedExampleServiceServer) Unary(context.Context, *Request) (*Response, error)
- type UnsafeExampleServiceServer
Constants ¶
This section is empty.
Variables ¶
var ExampleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.ExampleService", HandlerType: (*ExampleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Unary", Handler: _ExampleService_Unary_Handler, }, { MethodName: "NoReturn", Handler: _ExampleService_NoReturn_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ServerStream", Handler: _ExampleService_ServerStream_Handler, ServerStreams: true, }, { StreamName: "ClientStream", Handler: _ExampleService_ClientStream_Handler, ClientStreams: true, }, { StreamName: "BiDirectionalStream", Handler: _ExampleService_BiDirectionalStream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "example/example.proto", }
ExampleService_ServiceDesc is the grpc.ServiceDesc for ExampleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_example_example_proto protoreflect.FileDescriptor
var File_example_noservice_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExampleServiceServer ¶
func RegisterExampleServiceServer(s grpc.ServiceRegistrar, srv ExampleServiceServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type ExampleServiceClient ¶
type ExampleServiceClient interface { Unary(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) NoReturn(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) ServerStream(ctx context.Context, in *Request, opts ...grpc.CallOption) (ExampleService_ServerStreamClient, error) ClientStream(ctx context.Context, opts ...grpc.CallOption) (ExampleService_ClientStreamClient, error) BiDirectionalStream(ctx context.Context, opts ...grpc.CallOption) (ExampleService_BiDirectionalStreamClient, error) }
ExampleServiceClient is the client API for ExampleService 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 NewExampleServiceClient ¶
func NewExampleServiceClient(cc grpc.ClientConnInterface) ExampleServiceClient
type ExampleServiceGSClient ¶
type ExampleServiceGSClient interface { Unary(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) NoReturn(ctx context.Context, in *Empty, opts ...client.CallOption) (*Empty, error) ServerStream(ctx context.Context, in *Request, opts ...client.CallOption) (client.StreamClient, error) ClientStream(ctx context.Context, in *Request, opts ...client.CallOption) (client.StreamClient, error) BiDirectionalStream(ctx context.Context, in *Request, opts ...client.CallOption) (client.StreamClient, error) }
func NewExampleServiceGSClient ¶
func NewExampleServiceGSClient(name string, client client.Client, opts ...client.DialOption) ExampleServiceGSClient
type ExampleServiceServer ¶
type ExampleServiceServer interface { Unary(context.Context, *Request) (*Response, error) NoReturn(context.Context, *empty.Empty) (*empty.Empty, error) ServerStream(*Request, ExampleService_ServerStreamServer) error ClientStream(ExampleService_ClientStreamServer) error BiDirectionalStream(ExampleService_BiDirectionalStreamServer) error // contains filtered or unexported methods }
ExampleServiceServer is the server API for ExampleService service. All implementations must embed UnimplementedExampleServiceServer for forward compatibility
type ExampleService_ServerStreamClient ¶
type ExampleService_ServerStreamClient interface { Recv() (*Response, error) grpc.ClientStream }
type ExampleService_ServerStreamServer ¶
type ExampleService_ServerStreamServer interface { Send(*Response) error grpc.ServerStream }
type NoServiceMessage ¶
type NoServiceMessage struct { Role []string `protobuf:"bytes,1,rep,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*NoServiceMessage) Descriptor
deprecated
func (*NoServiceMessage) Descriptor() ([]byte, []int)
Deprecated: Use NoServiceMessage.ProtoReflect.Descriptor instead.
func (*NoServiceMessage) GetRole ¶
func (x *NoServiceMessage) GetRole() []string
func (*NoServiceMessage) ProtoMessage ¶
func (*NoServiceMessage) ProtoMessage()
func (*NoServiceMessage) ProtoReflect ¶
func (x *NoServiceMessage) ProtoReflect() protoreflect.Message
func (*NoServiceMessage) Reset ¶
func (x *NoServiceMessage) Reset()
func (*NoServiceMessage) String ¶
func (x *NoServiceMessage) String() string
type Request ¶
type Request struct { Arg string `protobuf:"bytes,1,opt,name=arg,proto3" json:"arg,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetSuccess ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedExampleServiceServer ¶
type UnimplementedExampleServiceServer struct { }
UnimplementedExampleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedExampleServiceServer) BiDirectionalStream ¶
func (UnimplementedExampleServiceServer) BiDirectionalStream(ExampleService_BiDirectionalStreamServer) error
func (UnimplementedExampleServiceServer) ClientStream ¶
func (UnimplementedExampleServiceServer) ClientStream(ExampleService_ClientStreamServer) error
func (UnimplementedExampleServiceServer) ServerStream ¶
func (UnimplementedExampleServiceServer) ServerStream(*Request, ExampleService_ServerStreamServer) error
type UnsafeExampleServiceServer ¶
type UnsafeExampleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeExampleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExampleServiceServer will result in compilation errors.