private_message

package
v0.0.0-...-5b44b94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_velocity_velocity_private_message_proto protoreflect.FileDescriptor
View Source
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

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.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL