Documentation ¶
Index ¶
- Variables
- func RegisterMessageServiceServer(s grpc.ServiceRegistrar, srv MessageServiceServer)
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetValue1() int32
- func (x *Message) GetValue2() int32
- func (x *Message) GetValue3() int32
- func (x *Message) GetValue4() int32
- func (x *Message) GetValue5() int32
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageServiceClient
- type MessageServiceServer
- type Server
- type UnimplementedMessageServiceServer
- type UnsafeMessageServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_grpc_proto_message_proto protoreflect.FileDescriptor
var MessageService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "MessageService", HandlerType: (*MessageServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendMessage", Handler: _MessageService_SendMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/proto/message.proto", }
MessageService_ServiceDesc is the grpc.ServiceDesc for MessageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMessageServiceServer ¶
func RegisterMessageServiceServer(s grpc.ServiceRegistrar, srv MessageServiceServer)
Types ¶
type Message ¶
type Message struct { Value1 int32 `protobuf:"varint,1,opt,name=Value1,proto3" json:"Value1,omitempty"` Value2 int32 `protobuf:"varint,2,opt,name=Value2,proto3" json:"Value2,omitempty"` Value3 int32 `protobuf:"varint,3,opt,name=Value3,proto3" json:"Value3,omitempty"` Value4 int32 `protobuf:"varint,4,opt,name=Value4,proto3" json:"Value4,omitempty"` Value5 int32 `protobuf:"varint,5,opt,name=Value5,proto3" json:"Value5,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageServiceClient ¶
type MessageServiceClient interface {
SendMessage(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
}
MessageServiceClient is the client API for MessageService 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 NewMessageServiceClient ¶
func NewMessageServiceClient(cc grpc.ClientConnInterface) MessageServiceClient
type MessageServiceServer ¶
type MessageServiceServer interface { SendMessage(context.Context, *Message) (*Message, error) // contains filtered or unexported methods }
MessageServiceServer is the server API for MessageService service. All implementations must embed UnimplementedMessageServiceServer for forward compatibility
type Server ¶
type Server struct {
UnimplementedMessageServiceServer
}
type UnimplementedMessageServiceServer ¶
type UnimplementedMessageServiceServer struct { }
UnimplementedMessageServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMessageServiceServer) SendMessage ¶
type UnsafeMessageServiceServer ¶
type UnsafeMessageServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMessageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MessageServiceServer will result in compilation errors.