Documentation ¶
Index ¶
- Variables
- func RegisterHelloServiceServer(s grpc.ServiceRegistrar, srv HelloServiceServer)
- type HelloRequest
- type HelloResponse
- type HelloServiceClient
- type HelloServiceServer
- type HelloService_HelloBDSClient
- type HelloService_HelloBDSServer
- type HelloService_HelloCSSClient
- type HelloService_HelloCSSServer
- type HelloService_HelloSSSClient
- type HelloService_HelloSSSServer
- type UnimplementedHelloServiceServer
- func (UnimplementedHelloServiceServer) HelloBDS(HelloService_HelloBDSServer) error
- func (UnimplementedHelloServiceServer) HelloCSS(HelloService_HelloCSSServer) error
- func (UnimplementedHelloServiceServer) HelloSSS(*HelloRequest, HelloService_HelloSSSServer) error
- func (UnimplementedHelloServiceServer) SayHello(context.Context, *HelloRequest) (*HelloResponse, error)
- type UnsafeHelloServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_hello_proto protoreflect.FileDescriptor
var HelloService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hello.HelloService", HandlerType: (*HelloServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SayHello", Handler: _HelloService_SayHello_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "HelloSSS", Handler: _HelloService_HelloSSS_Handler, ServerStreams: true, }, { StreamName: "HelloCSS", Handler: _HelloService_HelloCSS_Handler, ClientStreams: true, }, { StreamName: "HelloBDS", Handler: _HelloService_HelloBDS_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "hello.proto", }
HelloService_ServiceDesc is the grpc.ServiceDesc for HelloService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHelloServiceServer ¶
func RegisterHelloServiceServer(s grpc.ServiceRegistrar, srv HelloServiceServer)
Types ¶
type HelloRequest ¶
type HelloRequest struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetMsg ¶
func (x *HelloRequest) GetMsg() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
type HelloResponse ¶
type HelloResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*HelloResponse) Descriptor
deprecated
func (*HelloResponse) Descriptor() ([]byte, []int)
Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
func (*HelloResponse) GetMsg ¶
func (x *HelloResponse) GetMsg() string
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) ProtoReflect ¶
func (x *HelloResponse) ProtoReflect() protoreflect.Message
func (*HelloResponse) Reset ¶
func (x *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (x *HelloResponse) String() string
type HelloServiceClient ¶
type HelloServiceClient interface { SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error) HelloSSS(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (HelloService_HelloSSSClient, error) HelloCSS(ctx context.Context, opts ...grpc.CallOption) (HelloService_HelloCSSClient, error) HelloBDS(ctx context.Context, opts ...grpc.CallOption) (HelloService_HelloBDSClient, error) }
HelloServiceClient is the client API for HelloService 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 NewHelloServiceClient ¶
func NewHelloServiceClient(cc grpc.ClientConnInterface) HelloServiceClient
type HelloServiceServer ¶
type HelloServiceServer interface { SayHello(context.Context, *HelloRequest) (*HelloResponse, error) HelloSSS(*HelloRequest, HelloService_HelloSSSServer) error HelloCSS(HelloService_HelloCSSServer) error HelloBDS(HelloService_HelloBDSServer) error // contains filtered or unexported methods }
HelloServiceServer is the server API for HelloService service. All implementations must embed UnimplementedHelloServiceServer for forward compatibility
type HelloService_HelloBDSClient ¶
type HelloService_HelloBDSClient interface { Send(*HelloRequest) error Recv() (*HelloResponse, error) grpc.ClientStream }
type HelloService_HelloBDSServer ¶
type HelloService_HelloBDSServer interface { Send(*HelloResponse) error Recv() (*HelloRequest, error) grpc.ServerStream }
type HelloService_HelloCSSClient ¶
type HelloService_HelloCSSClient interface { Send(*HelloRequest) error CloseAndRecv() (*HelloResponse, error) grpc.ClientStream }
type HelloService_HelloCSSServer ¶
type HelloService_HelloCSSServer interface { SendAndClose(*HelloResponse) error Recv() (*HelloRequest, error) grpc.ServerStream }
type HelloService_HelloSSSClient ¶
type HelloService_HelloSSSClient interface { Recv() (*HelloResponse, error) grpc.ClientStream }
type HelloService_HelloSSSServer ¶
type HelloService_HelloSSSServer interface { Send(*HelloResponse) error grpc.ServerStream }
type UnimplementedHelloServiceServer ¶
type UnimplementedHelloServiceServer struct { }
UnimplementedHelloServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedHelloServiceServer) HelloBDS ¶
func (UnimplementedHelloServiceServer) HelloBDS(HelloService_HelloBDSServer) error
func (UnimplementedHelloServiceServer) HelloCSS ¶
func (UnimplementedHelloServiceServer) HelloCSS(HelloService_HelloCSSServer) error
func (UnimplementedHelloServiceServer) HelloSSS ¶
func (UnimplementedHelloServiceServer) HelloSSS(*HelloRequest, HelloService_HelloSSSServer) error
func (UnimplementedHelloServiceServer) SayHello ¶
func (UnimplementedHelloServiceServer) SayHello(context.Context, *HelloRequest) (*HelloResponse, error)
type UnsafeHelloServiceServer ¶
type UnsafeHelloServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHelloServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HelloServiceServer will result in compilation errors.