Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Message_name = map[int32]string{ 0: "MESSAGE_UNSPECIFIED", 1: "MESSAGE_BUILD_BLOCK", 2: "MESSAGE_STATE_SYNC_FINISHED", } Message_value = map[string]int32{ "MESSAGE_UNSPECIFIED": 0, "MESSAGE_BUILD_BLOCK": 1, "MESSAGE_STATE_SYNC_FINISHED": 2, } )
Enum value maps for Message.
var File_messenger_messenger_proto protoreflect.FileDescriptor
var Messenger_ServiceDesc = grpc.ServiceDesc{ ServiceName: "messenger.Messenger", HandlerType: (*MessengerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Notify", Handler: _Messenger_Notify_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "messenger/messenger.proto", }
Messenger_ServiceDesc is the grpc.ServiceDesc for Messenger service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMessengerServer ¶
func RegisterMessengerServer(s grpc.ServiceRegistrar, srv MessengerServer)
Types ¶
type Message ¶
type Message int32
func (Message) Descriptor ¶
func (Message) Descriptor() protoreflect.EnumDescriptor
func (Message) EnumDescriptor
deprecated
func (Message) Number ¶
func (x Message) Number() protoreflect.EnumNumber
func (Message) Type ¶
func (Message) Type() protoreflect.EnumType
type MessengerClient ¶
type MessengerClient interface {
Notify(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (*NotifyResponse, error)
}
MessengerClient is the client API for Messenger 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 NewMessengerClient ¶
func NewMessengerClient(cc grpc.ClientConnInterface) MessengerClient
type MessengerServer ¶
type MessengerServer interface { Notify(context.Context, *NotifyRequest) (*NotifyResponse, error) // contains filtered or unexported methods }
MessengerServer is the server API for Messenger service. All implementations must embed UnimplementedMessengerServer for forward compatibility
type NotifyRequest ¶
type NotifyRequest struct { Message Message `protobuf:"varint,1,opt,name=message,proto3,enum=messenger.Message" json:"message,omitempty"` // contains filtered or unexported fields }
func (*NotifyRequest) Descriptor
deprecated
func (*NotifyRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotifyRequest.ProtoReflect.Descriptor instead.
func (*NotifyRequest) GetMessage ¶
func (x *NotifyRequest) GetMessage() Message
func (*NotifyRequest) ProtoMessage ¶
func (*NotifyRequest) ProtoMessage()
func (*NotifyRequest) ProtoReflect ¶
func (x *NotifyRequest) ProtoReflect() protoreflect.Message
func (*NotifyRequest) Reset ¶
func (x *NotifyRequest) Reset()
func (*NotifyRequest) String ¶
func (x *NotifyRequest) String() string
type NotifyResponse ¶
type NotifyResponse struct {
// contains filtered or unexported fields
}
func (*NotifyResponse) Descriptor
deprecated
func (*NotifyResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotifyResponse.ProtoReflect.Descriptor instead.
func (*NotifyResponse) ProtoMessage ¶
func (*NotifyResponse) ProtoMessage()
func (*NotifyResponse) ProtoReflect ¶
func (x *NotifyResponse) ProtoReflect() protoreflect.Message
func (*NotifyResponse) Reset ¶
func (x *NotifyResponse) Reset()
func (*NotifyResponse) String ¶
func (x *NotifyResponse) String() string
type UnimplementedMessengerServer ¶
type UnimplementedMessengerServer struct { }
UnimplementedMessengerServer must be embedded to have forward compatible implementations.
func (UnimplementedMessengerServer) Notify ¶
func (UnimplementedMessengerServer) Notify(context.Context, *NotifyRequest) (*NotifyResponse, error)
type UnsafeMessengerServer ¶
type UnsafeMessengerServer interface {
// contains filtered or unexported methods
}
UnsafeMessengerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MessengerServer will result in compilation errors.