friend

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_friend_proto protoreflect.FileDescriptor
View Source
var VelocityFriend_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "towerdefence.cc.service.velocity.friend.VelocityFriend",
	HandlerType: (*VelocityFriendServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ReceiveFriendRequest",
			Handler:    _VelocityFriend_ReceiveFriendRequest_Handler,
		},
		{
			MethodName: "ReceiveFriendAdded",
			Handler:    _VelocityFriend_ReceiveFriendAdded_Handler,
		},
		{
			MethodName: "ReceiveFriendRemoved",
			Handler:    _VelocityFriend_ReceiveFriendRemoved_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "velocity/velocity_friend.proto",
}

VelocityFriend_ServiceDesc is the grpc.ServiceDesc for VelocityFriend service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterVelocityFriendServer

func RegisterVelocityFriendServer(s grpc.ServiceRegistrar, srv VelocityFriendServer)

Types

type ReceiveFriendAddedRequest

type ReceiveFriendAddedRequest 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"`
	// contains filtered or unexported fields
}

func (*ReceiveFriendAddedRequest) Descriptor deprecated

func (*ReceiveFriendAddedRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReceiveFriendAddedRequest.ProtoReflect.Descriptor instead.

func (*ReceiveFriendAddedRequest) GetRecipientId

func (x *ReceiveFriendAddedRequest) GetRecipientId() string

func (*ReceiveFriendAddedRequest) GetSenderId

func (x *ReceiveFriendAddedRequest) GetSenderId() string

func (*ReceiveFriendAddedRequest) GetSenderUsername

func (x *ReceiveFriendAddedRequest) GetSenderUsername() string

func (*ReceiveFriendAddedRequest) ProtoMessage

func (*ReceiveFriendAddedRequest) ProtoMessage()

func (*ReceiveFriendAddedRequest) ProtoReflect

func (*ReceiveFriendAddedRequest) Reset

func (x *ReceiveFriendAddedRequest) Reset()

func (*ReceiveFriendAddedRequest) String

func (x *ReceiveFriendAddedRequest) String() string

type ReceiveFriendRemovedRequest

type ReceiveFriendRemovedRequest struct {
	SenderId    string `protobuf:"bytes,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
	RecipientId string `protobuf:"bytes,2,opt,name=recipient_id,json=recipientId,proto3" json:"recipient_id,omitempty"`
	// contains filtered or unexported fields
}

Username is not needed here as it is not fed back to the user

func (*ReceiveFriendRemovedRequest) Descriptor deprecated

func (*ReceiveFriendRemovedRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReceiveFriendRemovedRequest.ProtoReflect.Descriptor instead.

func (*ReceiveFriendRemovedRequest) GetRecipientId

func (x *ReceiveFriendRemovedRequest) GetRecipientId() string

func (*ReceiveFriendRemovedRequest) GetSenderId

func (x *ReceiveFriendRemovedRequest) GetSenderId() string

func (*ReceiveFriendRemovedRequest) ProtoMessage

func (*ReceiveFriendRemovedRequest) ProtoMessage()

func (*ReceiveFriendRemovedRequest) ProtoReflect

func (*ReceiveFriendRemovedRequest) Reset

func (x *ReceiveFriendRemovedRequest) Reset()

func (*ReceiveFriendRemovedRequest) String

func (x *ReceiveFriendRemovedRequest) String() string

type ReceiveFriendRequestRequest

type ReceiveFriendRequestRequest 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"`
	// contains filtered or unexported fields
}

func (*ReceiveFriendRequestRequest) Descriptor deprecated

func (*ReceiveFriendRequestRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReceiveFriendRequestRequest.ProtoReflect.Descriptor instead.

func (*ReceiveFriendRequestRequest) GetRecipientId

func (x *ReceiveFriendRequestRequest) GetRecipientId() string

func (*ReceiveFriendRequestRequest) GetSenderId

func (x *ReceiveFriendRequestRequest) GetSenderId() string

func (*ReceiveFriendRequestRequest) GetSenderUsername

func (x *ReceiveFriendRequestRequest) GetSenderUsername() string

func (*ReceiveFriendRequestRequest) ProtoMessage

func (*ReceiveFriendRequestRequest) ProtoMessage()

func (*ReceiveFriendRequestRequest) ProtoReflect

func (*ReceiveFriendRequestRequest) Reset

func (x *ReceiveFriendRequestRequest) Reset()

func (*ReceiveFriendRequestRequest) String

func (x *ReceiveFriendRequestRequest) String() string

type UnimplementedVelocityFriendServer

type UnimplementedVelocityFriendServer struct {
}

UnimplementedVelocityFriendServer must be embedded to have forward compatible implementations.

func (UnimplementedVelocityFriendServer) ReceiveFriendAdded

func (UnimplementedVelocityFriendServer) ReceiveFriendRemoved

func (UnimplementedVelocityFriendServer) ReceiveFriendRequest

type UnsafeVelocityFriendServer

type UnsafeVelocityFriendServer interface {
	// contains filtered or unexported methods
}

UnsafeVelocityFriendServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VelocityFriendServer will result in compilation errors.

type VelocityFriendClient

type VelocityFriendClient interface {
	ReceiveFriendRequest(ctx context.Context, in *ReceiveFriendRequestRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ReceiveFriendAdded(ctx context.Context, in *ReceiveFriendAddedRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ReceiveFriendRemoved(ctx context.Context, in *ReceiveFriendRemovedRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

VelocityFriendClient is the client API for VelocityFriend 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 VelocityFriendServer

type VelocityFriendServer interface {
	ReceiveFriendRequest(context.Context, *ReceiveFriendRequestRequest) (*emptypb.Empty, error)
	ReceiveFriendAdded(context.Context, *ReceiveFriendAddedRequest) (*emptypb.Empty, error)
	ReceiveFriendRemoved(context.Context, *ReceiveFriendRemovedRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

VelocityFriendServer is the server API for VelocityFriend service. All implementations must embed UnimplementedVelocityFriendServer for forward compatibility

Jump to

Keyboard shortcuts

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