Documentation ¶
Index ¶
- Variables
- func RegisterVelocityPrivateMessageServer(s grpc.ServiceRegistrar, srv VelocityPrivateMessageServer)
- type PrivateMessage
- func (*PrivateMessage) Descriptor() ([]byte, []int)deprecated
- func (x *PrivateMessage) GetMessage() string
- func (x *PrivateMessage) GetRecipientId() string
- func (x *PrivateMessage) GetSenderUsername() string
- func (*PrivateMessage) ProtoMessage()
- func (x *PrivateMessage) ProtoReflect() protoreflect.Message
- func (x *PrivateMessage) Reset()
- func (x *PrivateMessage) String() string
- type UnimplementedVelocityPrivateMessageServer
- type UnsafeVelocityPrivateMessageServer
- type VelocityPrivateMessageClient
- type VelocityPrivateMessageServer
Constants ¶
This section is empty.
Variables ¶
var File_velocity_velocity_private_message_proto protoreflect.FileDescriptor
var VelocityPrivateMessage_ServiceDesc = grpc.ServiceDesc{ ServiceName: "towerdefence.cc.service.velocity.private_message.VelocityPrivateMessage", HandlerType: (*VelocityPrivateMessageServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ReceiveMessage", Handler: _VelocityPrivateMessage_ReceiveMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "velocity/velocity_private_message.proto", }
VelocityPrivateMessage_ServiceDesc is the grpc.ServiceDesc for VelocityPrivateMessage service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVelocityPrivateMessageServer ¶
func RegisterVelocityPrivateMessageServer(s grpc.ServiceRegistrar, srv VelocityPrivateMessageServer)
Types ¶
type PrivateMessage ¶
type PrivateMessage struct { SenderUsername string `protobuf:"bytes,1,opt,name=sender_username,json=senderUsername,proto3" json:"sender_username,omitempty"` RecipientId string `protobuf:"bytes,2,opt,name=recipient_id,json=recipientId,proto3" json:"recipient_id,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PrivateMessage) Descriptor
deprecated
func (*PrivateMessage) Descriptor() ([]byte, []int)
Deprecated: Use PrivateMessage.ProtoReflect.Descriptor instead.
func (*PrivateMessage) GetMessage ¶
func (x *PrivateMessage) GetMessage() string
func (*PrivateMessage) GetRecipientId ¶
func (x *PrivateMessage) GetRecipientId() string
func (*PrivateMessage) GetSenderUsername ¶
func (x *PrivateMessage) GetSenderUsername() string
func (*PrivateMessage) ProtoMessage ¶
func (*PrivateMessage) ProtoMessage()
func (*PrivateMessage) ProtoReflect ¶
func (x *PrivateMessage) ProtoReflect() protoreflect.Message
func (*PrivateMessage) Reset ¶
func (x *PrivateMessage) Reset()
func (*PrivateMessage) String ¶
func (x *PrivateMessage) String() string
type UnimplementedVelocityPrivateMessageServer ¶
type UnimplementedVelocityPrivateMessageServer struct { }
UnimplementedVelocityPrivateMessageServer must be embedded to have forward compatible implementations.
func (UnimplementedVelocityPrivateMessageServer) ReceiveMessage ¶
func (UnimplementedVelocityPrivateMessageServer) ReceiveMessage(context.Context, *PrivateMessage) (*emptypb.Empty, error)
type UnsafeVelocityPrivateMessageServer ¶
type UnsafeVelocityPrivateMessageServer interface {
// contains filtered or unexported methods
}
UnsafeVelocityPrivateMessageServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VelocityPrivateMessageServer will result in compilation errors.
type VelocityPrivateMessageClient ¶
type VelocityPrivateMessageClient interface {
ReceiveMessage(ctx context.Context, in *PrivateMessage, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
VelocityPrivateMessageClient is the client API for VelocityPrivateMessage 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 NewVelocityPrivateMessageClient ¶
func NewVelocityPrivateMessageClient(cc grpc.ClientConnInterface) VelocityPrivateMessageClient
type VelocityPrivateMessageServer ¶
type VelocityPrivateMessageServer interface { ReceiveMessage(context.Context, *PrivateMessage) (*emptypb.Empty, error) // contains filtered or unexported methods }
VelocityPrivateMessageServer is the server API for VelocityPrivateMessage service. All implementations must embed UnimplementedVelocityPrivateMessageServer for forward compatibility