Documentation ¶
Index ¶
- Variables
- func RegisterHandlerServiceServer(s grpc.ServiceRegistrar, srv HandlerServiceServer)
- type HandleRequest
- func (*HandleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandleRequest) GetMessage() []byte
- func (x *HandleRequest) GetName() string
- func (*HandleRequest) ProtoMessage()
- func (x *HandleRequest) ProtoReflect() protoreflect.Message
- func (x *HandleRequest) Reset()
- func (x *HandleRequest) String() string
- type HandlerServiceClient
- type HandlerServiceServer
- type UnimplementedHandlerServiceServer
- type UnsafeHandlerServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_pb_v1_handler_proto protoreflect.FileDescriptor
var HandlerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "messageman.v1.HandlerService", HandlerType: (*HandlerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Handle", Handler: _HandlerService_Handle_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/v1/handler.proto", }
HandlerService_ServiceDesc is the grpc.ServiceDesc for HandlerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHandlerServiceServer ¶
func RegisterHandlerServiceServer(s grpc.ServiceRegistrar, srv HandlerServiceServer)
Types ¶
type HandleRequest ¶
type HandleRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*HandleRequest) Descriptor
deprecated
func (*HandleRequest) Descriptor() ([]byte, []int)
Deprecated: Use HandleRequest.ProtoReflect.Descriptor instead.
func (*HandleRequest) GetMessage ¶
func (x *HandleRequest) GetMessage() []byte
func (*HandleRequest) GetName ¶
func (x *HandleRequest) GetName() string
func (*HandleRequest) ProtoMessage ¶
func (*HandleRequest) ProtoMessage()
func (*HandleRequest) ProtoReflect ¶
func (x *HandleRequest) ProtoReflect() protoreflect.Message
func (*HandleRequest) Reset ¶
func (x *HandleRequest) Reset()
func (*HandleRequest) String ¶
func (x *HandleRequest) String() string
type HandlerServiceClient ¶
type HandlerServiceClient interface {
Handle(ctx context.Context, in *HandleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
HandlerServiceClient is the client API for HandlerService 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 NewHandlerServiceClient ¶
func NewHandlerServiceClient(cc grpc.ClientConnInterface) HandlerServiceClient
type HandlerServiceServer ¶
type HandlerServiceServer interface { Handle(context.Context, *HandleRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
HandlerServiceServer is the server API for HandlerService service. All implementations must embed UnimplementedHandlerServiceServer for forward compatibility
type UnimplementedHandlerServiceServer ¶
type UnimplementedHandlerServiceServer struct { }
UnimplementedHandlerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedHandlerServiceServer) Handle ¶
func (UnimplementedHandlerServiceServer) Handle(context.Context, *HandleRequest) (*emptypb.Empty, error)
type UnsafeHandlerServiceServer ¶
type UnsafeHandlerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHandlerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HandlerServiceServer will result in compilation errors.