Documentation ¶
Index ¶
- Variables
- func RegisterPrivateMessageServer(s grpc.ServiceRegistrar, srv PrivateMessageServer)
- type PrivateMessageClient
- type PrivateMessageRequest
- func (*PrivateMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PrivateMessageRequest) GetMessage() string
- func (x *PrivateMessageRequest) GetRecipientId() string
- func (x *PrivateMessageRequest) GetSenderId() string
- func (x *PrivateMessageRequest) GetSenderUsername() string
- func (*PrivateMessageRequest) ProtoMessage()
- func (x *PrivateMessageRequest) ProtoReflect() protoreflect.Message
- func (x *PrivateMessageRequest) Reset()
- func (x *PrivateMessageRequest) String() string
- type PrivateMessageResponse
- func (*PrivateMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PrivateMessageResponse) GetMessage() string
- func (x *PrivateMessageResponse) GetStatus() PrivateMessageResponse_Status
- func (*PrivateMessageResponse) ProtoMessage()
- func (x *PrivateMessageResponse) ProtoReflect() protoreflect.Message
- func (x *PrivateMessageResponse) Reset()
- func (x *PrivateMessageResponse) String() string
- type PrivateMessageResponse_Status
- func (PrivateMessageResponse_Status) Descriptor() protoreflect.EnumDescriptor
- func (x PrivateMessageResponse_Status) Enum() *PrivateMessageResponse_Status
- func (PrivateMessageResponse_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x PrivateMessageResponse_Status) Number() protoreflect.EnumNumber
- func (x PrivateMessageResponse_Status) String() string
- func (PrivateMessageResponse_Status) Type() protoreflect.EnumType
- type PrivateMessageServer
- type UnimplementedPrivateMessageServer
- type UnsafePrivateMessageServer
Constants ¶
This section is empty.
Variables ¶
var ( PrivateMessageResponse_Status_name = map[int32]string{ 0: "OK", 1: "PLAYER_NOT_ONLINE", 2: "PRIVACY_BLOCKED", } PrivateMessageResponse_Status_value = map[string]int32{ "OK": 0, "PLAYER_NOT_ONLINE": 1, "PRIVACY_BLOCKED": 2, } )
Enum value maps for PrivateMessageResponse_Status.
var File_private_message_proto protoreflect.FileDescriptor
var PrivateMessage_ServiceDesc = grpc.ServiceDesc{ ServiceName: "towerdefence.cc.service.private_message.PrivateMessage", HandlerType: (*PrivateMessageServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendPrivateMessage", Handler: _PrivateMessage_SendPrivateMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "private_message.proto", }
PrivateMessage_ServiceDesc is the grpc.ServiceDesc for PrivateMessage service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPrivateMessageServer ¶
func RegisterPrivateMessageServer(s grpc.ServiceRegistrar, srv PrivateMessageServer)
Types ¶
type PrivateMessageClient ¶
type PrivateMessageClient interface {
SendPrivateMessage(ctx context.Context, in *PrivateMessageRequest, opts ...grpc.CallOption) (*PrivateMessageResponse, error)
}
PrivateMessageClient is the client API for PrivateMessage 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 NewPrivateMessageClient ¶
func NewPrivateMessageClient(cc grpc.ClientConnInterface) PrivateMessageClient
type PrivateMessageRequest ¶
type PrivateMessageRequest struct { SenderId string `protobuf:"bytes,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` SenderUsername string `protobuf:"bytes,2,opt,name=sender_username,json=senderUsername,proto3" json:"sender_username,omitempty"` RecipientId string `protobuf:"bytes,3,opt,name=recipient_id,json=recipientId,proto3" json:"recipient_id,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PrivateMessageRequest) Descriptor
deprecated
func (*PrivateMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use PrivateMessageRequest.ProtoReflect.Descriptor instead.
func (*PrivateMessageRequest) GetMessage ¶
func (x *PrivateMessageRequest) GetMessage() string
func (*PrivateMessageRequest) GetRecipientId ¶
func (x *PrivateMessageRequest) GetRecipientId() string
func (*PrivateMessageRequest) GetSenderId ¶
func (x *PrivateMessageRequest) GetSenderId() string
func (*PrivateMessageRequest) GetSenderUsername ¶
func (x *PrivateMessageRequest) GetSenderUsername() string
func (*PrivateMessageRequest) ProtoMessage ¶
func (*PrivateMessageRequest) ProtoMessage()
func (*PrivateMessageRequest) ProtoReflect ¶
func (x *PrivateMessageRequest) ProtoReflect() protoreflect.Message
func (*PrivateMessageRequest) Reset ¶
func (x *PrivateMessageRequest) Reset()
func (*PrivateMessageRequest) String ¶
func (x *PrivateMessageRequest) String() string
type PrivateMessageResponse ¶
type PrivateMessageResponse struct { Status PrivateMessageResponse_Status `` /* 141-byte string literal not displayed */ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PrivateMessageResponse) Descriptor
deprecated
func (*PrivateMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use PrivateMessageResponse.ProtoReflect.Descriptor instead.
func (*PrivateMessageResponse) GetMessage ¶
func (x *PrivateMessageResponse) GetMessage() string
func (*PrivateMessageResponse) GetStatus ¶
func (x *PrivateMessageResponse) GetStatus() PrivateMessageResponse_Status
func (*PrivateMessageResponse) ProtoMessage ¶
func (*PrivateMessageResponse) ProtoMessage()
func (*PrivateMessageResponse) ProtoReflect ¶
func (x *PrivateMessageResponse) ProtoReflect() protoreflect.Message
func (*PrivateMessageResponse) Reset ¶
func (x *PrivateMessageResponse) Reset()
func (*PrivateMessageResponse) String ¶
func (x *PrivateMessageResponse) String() string
type PrivateMessageResponse_Status ¶
type PrivateMessageResponse_Status int32
const ( PrivateMessageResponse_OK PrivateMessageResponse_Status = 0 PrivateMessageResponse_PLAYER_NOT_ONLINE PrivateMessageResponse_Status = 1 PrivateMessageResponse_PRIVACY_BLOCKED PrivateMessageResponse_Status = 2 )
func (PrivateMessageResponse_Status) Descriptor ¶
func (PrivateMessageResponse_Status) Descriptor() protoreflect.EnumDescriptor
func (PrivateMessageResponse_Status) Enum ¶
func (x PrivateMessageResponse_Status) Enum() *PrivateMessageResponse_Status
func (PrivateMessageResponse_Status) EnumDescriptor
deprecated
func (PrivateMessageResponse_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use PrivateMessageResponse_Status.Descriptor instead.
func (PrivateMessageResponse_Status) Number ¶
func (x PrivateMessageResponse_Status) Number() protoreflect.EnumNumber
func (PrivateMessageResponse_Status) String ¶
func (x PrivateMessageResponse_Status) String() string
func (PrivateMessageResponse_Status) Type ¶
func (PrivateMessageResponse_Status) Type() protoreflect.EnumType
type PrivateMessageServer ¶
type PrivateMessageServer interface { SendPrivateMessage(context.Context, *PrivateMessageRequest) (*PrivateMessageResponse, error) // contains filtered or unexported methods }
PrivateMessageServer is the server API for PrivateMessage service. All implementations must embed UnimplementedPrivateMessageServer for forward compatibility
type UnimplementedPrivateMessageServer ¶
type UnimplementedPrivateMessageServer struct { }
UnimplementedPrivateMessageServer must be embedded to have forward compatible implementations.
func (UnimplementedPrivateMessageServer) SendPrivateMessage ¶
func (UnimplementedPrivateMessageServer) SendPrivateMessage(context.Context, *PrivateMessageRequest) (*PrivateMessageResponse, error)
type UnsafePrivateMessageServer ¶
type UnsafePrivateMessageServer interface {
// contains filtered or unexported methods
}
UnsafePrivateMessageServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PrivateMessageServer will result in compilation errors.