Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterGrpcmdServiceServer(s grpc.ServiceRegistrar, srv GrpcmdServiceServer)
- type GrpcmdRequest
- type GrpcmdResponse
- type GrpcmdServiceClient
- type GrpcmdServiceServer
- type GrpcmdService_BidirectionalStreamingMethodClient
- type GrpcmdService_BidirectionalStreamingMethodServer
- type GrpcmdService_ClientStreamingMethodClient
- type GrpcmdService_ClientStreamingMethodServer
- type GrpcmdService_ServerStreamingMethodClient
- type GrpcmdService_ServerStreamingMethodServer
- type UnimplementedGrpcmdServiceServer
- func (UnimplementedGrpcmdServiceServer) BidirectionalStreamingMethod(GrpcmdService_BidirectionalStreamingMethodServer) error
- func (UnimplementedGrpcmdServiceServer) ClientStreamingMethod(GrpcmdService_ClientStreamingMethodServer) error
- func (UnimplementedGrpcmdServiceServer) ServerStreamingMethod(*GrpcmdRequest, GrpcmdService_ServerStreamingMethodServer) error
- func (UnimplementedGrpcmdServiceServer) UnaryMethod(context.Context, *GrpcmdRequest) (*GrpcmdResponse, error)
- type UnsafeGrpcmdServiceServer
Constants ¶
const ( GrpcmdService_UnaryMethod_FullMethodName = "/grpcmd.GrpcmdService/UnaryMethod" GrpcmdService_ClientStreamingMethod_FullMethodName = "/grpcmd.GrpcmdService/ClientStreamingMethod" GrpcmdService_ServerStreamingMethod_FullMethodName = "/grpcmd.GrpcmdService/ServerStreamingMethod" GrpcmdService_BidirectionalStreamingMethod_FullMethodName = "/grpcmd.GrpcmdService/BidirectionalStreamingMethod" )
Variables ¶
var File_proto_grpcmd_service_proto protoreflect.FileDescriptor
var GrpcmdService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpcmd.GrpcmdService", HandlerType: (*GrpcmdServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UnaryMethod", Handler: _GrpcmdService_UnaryMethod_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ClientStreamingMethod", Handler: _GrpcmdService_ClientStreamingMethod_Handler, ClientStreams: true, }, { StreamName: "ServerStreamingMethod", Handler: _GrpcmdService_ServerStreamingMethod_Handler, ServerStreams: true, }, { StreamName: "BidirectionalStreamingMethod", Handler: _GrpcmdService_BidirectionalStreamingMethod_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "proto/grpcmd_service.proto", }
GrpcmdService_ServiceDesc is the grpc.ServiceDesc for GrpcmdService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGrpcmdServiceServer ¶
func RegisterGrpcmdServiceServer(s grpc.ServiceRegistrar, srv GrpcmdServiceServer)
Types ¶
type GrpcmdRequest ¶
type GrpcmdRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*GrpcmdRequest) Descriptor
deprecated
func (*GrpcmdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GrpcmdRequest.ProtoReflect.Descriptor instead.
func (*GrpcmdRequest) GetName ¶
func (x *GrpcmdRequest) GetName() string
func (*GrpcmdRequest) ProtoMessage ¶
func (*GrpcmdRequest) ProtoMessage()
func (*GrpcmdRequest) ProtoReflect ¶
func (x *GrpcmdRequest) ProtoReflect() protoreflect.Message
func (*GrpcmdRequest) Reset ¶
func (x *GrpcmdRequest) Reset()
func (*GrpcmdRequest) String ¶
func (x *GrpcmdRequest) String() string
type GrpcmdResponse ¶
type GrpcmdResponse struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*GrpcmdResponse) Descriptor
deprecated
func (*GrpcmdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GrpcmdResponse.ProtoReflect.Descriptor instead.
func (*GrpcmdResponse) GetMessage ¶
func (x *GrpcmdResponse) GetMessage() string
func (*GrpcmdResponse) ProtoMessage ¶
func (*GrpcmdResponse) ProtoMessage()
func (*GrpcmdResponse) ProtoReflect ¶
func (x *GrpcmdResponse) ProtoReflect() protoreflect.Message
func (*GrpcmdResponse) Reset ¶
func (x *GrpcmdResponse) Reset()
func (*GrpcmdResponse) String ¶
func (x *GrpcmdResponse) String() string
type GrpcmdServiceClient ¶
type GrpcmdServiceClient interface {
UnaryMethod(ctx context.Context, in *GrpcmdRequest, opts ...grpc.CallOption) (*GrpcmdResponse, error)
ClientStreamingMethod(ctx context.Context, opts ...grpc.CallOption) (GrpcmdService_ClientStreamingMethodClient, error)
ServerStreamingMethod(ctx context.Context, in *GrpcmdRequest, opts ...grpc.CallOption) (GrpcmdService_ServerStreamingMethodClient, error)
BidirectionalStreamingMethod(ctx context.Context, opts ...grpc.CallOption) (GrpcmdService_BidirectionalStreamingMethodClient, error)
}
GrpcmdServiceClient is the client API for GrpcmdService 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 NewGrpcmdServiceClient ¶
func NewGrpcmdServiceClient(cc grpc.ClientConnInterface) GrpcmdServiceClient
type GrpcmdServiceServer ¶
type GrpcmdServiceServer interface {
UnaryMethod(context.Context, *GrpcmdRequest) (*GrpcmdResponse, error)
ClientStreamingMethod(GrpcmdService_ClientStreamingMethodServer) error
ServerStreamingMethod(*GrpcmdRequest, GrpcmdService_ServerStreamingMethodServer) error
BidirectionalStreamingMethod(GrpcmdService_BidirectionalStreamingMethodServer) error
// contains filtered or unexported methods
}
GrpcmdServiceServer is the server API for GrpcmdService service. All implementations must embed UnimplementedGrpcmdServiceServer for forward compatibility
type GrpcmdService_BidirectionalStreamingMethodClient ¶
type GrpcmdService_BidirectionalStreamingMethodClient interface {
Send(*GrpcmdRequest) error
Recv() (*GrpcmdResponse, error)
grpc.ClientStream
}
type GrpcmdService_BidirectionalStreamingMethodServer ¶
type GrpcmdService_BidirectionalStreamingMethodServer interface {
Send(*GrpcmdResponse) error
Recv() (*GrpcmdRequest, error)
grpc.ServerStream
}
type GrpcmdService_ClientStreamingMethodClient ¶
type GrpcmdService_ClientStreamingMethodClient interface {
Send(*GrpcmdRequest) error
CloseAndRecv() (*GrpcmdResponse, error)
grpc.ClientStream
}
type GrpcmdService_ClientStreamingMethodServer ¶
type GrpcmdService_ClientStreamingMethodServer interface {
SendAndClose(*GrpcmdResponse) error
Recv() (*GrpcmdRequest, error)
grpc.ServerStream
}
type GrpcmdService_ServerStreamingMethodClient ¶
type GrpcmdService_ServerStreamingMethodClient interface {
Recv() (*GrpcmdResponse, error)
grpc.ClientStream
}
type GrpcmdService_ServerStreamingMethodServer ¶
type GrpcmdService_ServerStreamingMethodServer interface {
Send(*GrpcmdResponse) error
grpc.ServerStream
}
type UnimplementedGrpcmdServiceServer ¶
type UnimplementedGrpcmdServiceServer struct {
}
UnimplementedGrpcmdServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGrpcmdServiceServer) BidirectionalStreamingMethod ¶
func (UnimplementedGrpcmdServiceServer) BidirectionalStreamingMethod(GrpcmdService_BidirectionalStreamingMethodServer) error
func (UnimplementedGrpcmdServiceServer) ClientStreamingMethod ¶
func (UnimplementedGrpcmdServiceServer) ClientStreamingMethod(GrpcmdService_ClientStreamingMethodServer) error
func (UnimplementedGrpcmdServiceServer) ServerStreamingMethod ¶
func (UnimplementedGrpcmdServiceServer) ServerStreamingMethod(*GrpcmdRequest, GrpcmdService_ServerStreamingMethodServer) error
func (UnimplementedGrpcmdServiceServer) UnaryMethod ¶
func (UnimplementedGrpcmdServiceServer) UnaryMethod(context.Context, *GrpcmdRequest) (*GrpcmdResponse, error)
type UnsafeGrpcmdServiceServer ¶
type UnsafeGrpcmdServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGrpcmdServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GrpcmdServiceServer will result in compilation errors.