Documentation ¶
Index ¶
- Variables
- func RegisterVelocityFriendServer(s grpc.ServiceRegistrar, srv VelocityFriendServer)
- type ReceiveFriendAddedRequest
- func (*ReceiveFriendAddedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiveFriendAddedRequest) GetRecipientId() string
- func (x *ReceiveFriendAddedRequest) GetSenderId() string
- func (x *ReceiveFriendAddedRequest) GetSenderUsername() string
- func (*ReceiveFriendAddedRequest) ProtoMessage()
- func (x *ReceiveFriendAddedRequest) ProtoReflect() protoreflect.Message
- func (x *ReceiveFriendAddedRequest) Reset()
- func (x *ReceiveFriendAddedRequest) String() string
- type ReceiveFriendRemovedRequest
- func (*ReceiveFriendRemovedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiveFriendRemovedRequest) GetRecipientId() string
- func (x *ReceiveFriendRemovedRequest) GetSenderId() string
- func (*ReceiveFriendRemovedRequest) ProtoMessage()
- func (x *ReceiveFriendRemovedRequest) ProtoReflect() protoreflect.Message
- func (x *ReceiveFriendRemovedRequest) Reset()
- func (x *ReceiveFriendRemovedRequest) String() string
- type ReceiveFriendRequestRequest
- func (*ReceiveFriendRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiveFriendRequestRequest) GetRecipientId() string
- func (x *ReceiveFriendRequestRequest) GetSenderId() string
- func (x *ReceiveFriendRequestRequest) GetSenderUsername() string
- func (*ReceiveFriendRequestRequest) ProtoMessage()
- func (x *ReceiveFriendRequestRequest) ProtoReflect() protoreflect.Message
- func (x *ReceiveFriendRequestRequest) Reset()
- func (x *ReceiveFriendRequestRequest) String() string
- type UnimplementedVelocityFriendServer
- func (UnimplementedVelocityFriendServer) ReceiveFriendAdded(context.Context, *ReceiveFriendAddedRequest) (*emptypb.Empty, error)
- func (UnimplementedVelocityFriendServer) ReceiveFriendRemoved(context.Context, *ReceiveFriendRemovedRequest) (*emptypb.Empty, error)
- func (UnimplementedVelocityFriendServer) ReceiveFriendRequest(context.Context, *ReceiveFriendRequestRequest) (*emptypb.Empty, error)
- type UnsafeVelocityFriendServer
- type VelocityFriendClient
- type VelocityFriendServer
Constants ¶
This section is empty.
Variables ¶
var File_velocity_velocity_friend_proto protoreflect.FileDescriptor
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 (x *ReceiveFriendAddedRequest) ProtoReflect() protoreflect.Message
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 (x *ReceiveFriendRemovedRequest) ProtoReflect() protoreflect.Message
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 (x *ReceiveFriendRequestRequest) ProtoReflect() protoreflect.Message
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) ReceiveFriendAdded(context.Context, *ReceiveFriendAddedRequest) (*emptypb.Empty, error)
func (UnimplementedVelocityFriendServer) ReceiveFriendRemoved ¶
func (UnimplementedVelocityFriendServer) ReceiveFriendRemoved(context.Context, *ReceiveFriendRemovedRequest) (*emptypb.Empty, error)
func (UnimplementedVelocityFriendServer) ReceiveFriendRequest ¶
func (UnimplementedVelocityFriendServer) ReceiveFriendRequest(context.Context, *ReceiveFriendRequestRequest) (*emptypb.Empty, error)
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.
func NewVelocityFriendClient ¶
func NewVelocityFriendClient(cc grpc.ClientConnInterface) VelocityFriendClient
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