Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterFriendManagementServer(s grpc.ServiceRegistrar, srv FriendManagementServer)
- type AcceptFriendRequestRequest
- func (*AcceptFriendRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AcceptFriendRequestRequest) GetRequestId() int32
- func (*AcceptFriendRequestRequest) ProtoMessage()
- func (x *AcceptFriendRequestRequest) ProtoReflect() protoreflect.Message
- func (x *AcceptFriendRequestRequest) Reset()
- func (x *AcceptFriendRequestRequest) String() string
- type AcceptFriendRequestResponse
- func (*AcceptFriendRequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AcceptFriendRequestResponse) GetMessage() string
- func (x *AcceptFriendRequestResponse) GetStatus() FriendRequestStatus
- func (x *AcceptFriendRequestResponse) GetTimestamp() *timestamppb.Timestamp
- func (*AcceptFriendRequestResponse) ProtoMessage()
- func (x *AcceptFriendRequestResponse) ProtoReflect() protoreflect.Message
- func (x *AcceptFriendRequestResponse) Reset()
- func (x *AcceptFriendRequestResponse) String() string
- type DeclineFriendRequestRequest
- func (*DeclineFriendRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeclineFriendRequestRequest) GetRequestId() int32
- func (*DeclineFriendRequestRequest) ProtoMessage()
- func (x *DeclineFriendRequestRequest) ProtoReflect() protoreflect.Message
- func (x *DeclineFriendRequestRequest) Reset()
- func (x *DeclineFriendRequestRequest) String() string
- type DeclineFriendRequestResponse
- func (*DeclineFriendRequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeclineFriendRequestResponse) GetMessage() string
- func (x *DeclineFriendRequestResponse) GetStatus() FriendRequestStatus
- func (x *DeclineFriendRequestResponse) GetTimestamp() *timestamppb.Timestamp
- func (*DeclineFriendRequestResponse) ProtoMessage()
- func (x *DeclineFriendRequestResponse) ProtoReflect() protoreflect.Message
- func (x *DeclineFriendRequestResponse) Reset()
- func (x *DeclineFriendRequestResponse) String() string
- type Friend
- func (*Friend) Descriptor() ([]byte, []int)deprecated
- func (x *Friend) GetAddedAt() *timestamppb.Timestamp
- func (x *Friend) GetUserId() int32
- func (x *Friend) GetUsername() string
- func (*Friend) ProtoMessage()
- func (x *Friend) ProtoReflect() protoreflect.Message
- func (x *Friend) Reset()
- func (x *Friend) String() string
- type FriendManagementClient
- type FriendManagementServer
- type FriendRequest
- func (*FriendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FriendRequest) GetCreatedAt() *timestamppb.Timestamp
- func (x *FriendRequest) GetRecipientId() int32
- func (x *FriendRequest) GetRecipientUsername() string
- func (x *FriendRequest) GetRequestId() int32
- func (x *FriendRequest) GetSenderId() int32
- func (x *FriendRequest) GetSenderUsername() string
- func (x *FriendRequest) GetStatus() FriendRequestStatus
- func (*FriendRequest) ProtoMessage()
- func (x *FriendRequest) ProtoReflect() protoreflect.Message
- func (x *FriendRequest) Reset()
- func (x *FriendRequest) String() string
- type FriendRequestStatus
- func (FriendRequestStatus) Descriptor() protoreflect.EnumDescriptor
- func (x FriendRequestStatus) Enum() *FriendRequestStatus
- func (FriendRequestStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x FriendRequestStatus) Number() protoreflect.EnumNumber
- func (x FriendRequestStatus) String() string
- func (FriendRequestStatus) Type() protoreflect.EnumType
- type GetFriendListRequest
- type GetFriendListResponse
- func (*GetFriendListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendListResponse) GetFriends() []*Friend
- func (*GetFriendListResponse) ProtoMessage()
- func (x *GetFriendListResponse) ProtoReflect() protoreflect.Message
- func (x *GetFriendListResponse) Reset()
- func (x *GetFriendListResponse) String() string
- type GetIncomingFriendRequestsRequest
- func (*GetIncomingFriendRequestsRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetIncomingFriendRequestsRequest) ProtoMessage()
- func (x *GetIncomingFriendRequestsRequest) ProtoReflect() protoreflect.Message
- func (x *GetIncomingFriendRequestsRequest) Reset()
- func (x *GetIncomingFriendRequestsRequest) String() string
- type GetIncomingFriendRequestsResponse
- func (*GetIncomingFriendRequestsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetIncomingFriendRequestsResponse) GetIncomingRequests() []*FriendRequest
- func (*GetIncomingFriendRequestsResponse) ProtoMessage()
- func (x *GetIncomingFriendRequestsResponse) ProtoReflect() protoreflect.Message
- func (x *GetIncomingFriendRequestsResponse) Reset()
- func (x *GetIncomingFriendRequestsResponse) String() string
- type GetOutgoingFriendRequestsRequest
- func (*GetOutgoingFriendRequestsRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetOutgoingFriendRequestsRequest) ProtoMessage()
- func (x *GetOutgoingFriendRequestsRequest) ProtoReflect() protoreflect.Message
- func (x *GetOutgoingFriendRequestsRequest) Reset()
- func (x *GetOutgoingFriendRequestsRequest) String() string
- type GetOutgoingFriendRequestsResponse
- func (*GetOutgoingFriendRequestsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOutgoingFriendRequestsResponse) GetOutgoingRequests() []*FriendRequest
- func (*GetOutgoingFriendRequestsResponse) ProtoMessage()
- func (x *GetOutgoingFriendRequestsResponse) ProtoReflect() protoreflect.Message
- func (x *GetOutgoingFriendRequestsResponse) Reset()
- func (x *GetOutgoingFriendRequestsResponse) String() string
- type RemoveFriendRequest
- func (*RemoveFriendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveFriendRequest) GetFriendId() int32
- func (*RemoveFriendRequest) ProtoMessage()
- func (x *RemoveFriendRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveFriendRequest) Reset()
- func (x *RemoveFriendRequest) String() string
- type RemoveFriendResponse
- func (*RemoveFriendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveFriendResponse) GetMessage() string
- func (x *RemoveFriendResponse) GetSuccess() bool
- func (x *RemoveFriendResponse) GetTimestamp() *timestamppb.Timestamp
- func (*RemoveFriendResponse) ProtoMessage()
- func (x *RemoveFriendResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveFriendResponse) Reset()
- func (x *RemoveFriendResponse) String() string
- type SendFriendRequestRequest
- func (*SendFriendRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendFriendRequestRequest) GetRecipientUsername() string
- func (*SendFriendRequestRequest) ProtoMessage()
- func (x *SendFriendRequestRequest) ProtoReflect() protoreflect.Message
- func (x *SendFriendRequestRequest) Reset()
- func (x *SendFriendRequestRequest) String() string
- type SendFriendRequestResponse
- func (*SendFriendRequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendFriendRequestResponse) GetMessage() string
- func (x *SendFriendRequestResponse) GetStatus() FriendRequestStatus
- func (x *SendFriendRequestResponse) GetTimestamp() *timestamppb.Timestamp
- func (*SendFriendRequestResponse) ProtoMessage()
- func (x *SendFriendRequestResponse) ProtoReflect() protoreflect.Message
- func (x *SendFriendRequestResponse) Reset()
- func (x *SendFriendRequestResponse) String() string
- type UnimplementedFriendManagementServer
- func (UnimplementedFriendManagementServer) AcceptFriendRequest(context.Context, *AcceptFriendRequestRequest) (*AcceptFriendRequestResponse, error)
- func (UnimplementedFriendManagementServer) DeclineFriendRequest(context.Context, *DeclineFriendRequestRequest) (*DeclineFriendRequestResponse, error)
- func (UnimplementedFriendManagementServer) GetFriendList(context.Context, *GetFriendListRequest) (*GetFriendListResponse, error)
- func (UnimplementedFriendManagementServer) GetIncomingFriendRequests(context.Context, *GetIncomingFriendRequestsRequest) (*GetIncomingFriendRequestsResponse, error)
- func (UnimplementedFriendManagementServer) GetOutgoingFriendRequests(context.Context, *GetOutgoingFriendRequestsRequest) (*GetOutgoingFriendRequestsResponse, error)
- func (UnimplementedFriendManagementServer) RemoveFriend(context.Context, *RemoveFriendRequest) (*RemoveFriendResponse, error)
- func (UnimplementedFriendManagementServer) SendFriendRequest(context.Context, *SendFriendRequestRequest) (*SendFriendRequestResponse, error)
- type UnsafeFriendManagementServer
Constants ¶
const ( FriendManagement_GetFriendList_FullMethodName = "/friends.FriendManagement/GetFriendList" FriendManagement_GetIncomingFriendRequests_FullMethodName = "/friends.FriendManagement/GetIncomingFriendRequests" FriendManagement_GetOutgoingFriendRequests_FullMethodName = "/friends.FriendManagement/GetOutgoingFriendRequests" FriendManagement_SendFriendRequest_FullMethodName = "/friends.FriendManagement/SendFriendRequest" FriendManagement_AcceptFriendRequest_FullMethodName = "/friends.FriendManagement/AcceptFriendRequest" FriendManagement_DeclineFriendRequest_FullMethodName = "/friends.FriendManagement/DeclineFriendRequest" FriendManagement_RemoveFriend_FullMethodName = "/friends.FriendManagement/RemoveFriend" )
Variables ¶
var ( FriendRequestStatus_name = map[int32]string{ 0: "UNKNOWN", 1: "PENDING", 2: "ACCEPTED", 3: "DECLINED", 4: "CANCELED", 5: "FAILED", } FriendRequestStatus_value = map[string]int32{ "UNKNOWN": 0, "PENDING": 1, "ACCEPTED": 2, "DECLINED": 3, "CANCELED": 4, "FAILED": 5, } )
Enum value maps for FriendRequestStatus.
var File_proto_friends_friends_proto protoreflect.FileDescriptor
var FriendManagement_ServiceDesc = grpc.ServiceDesc{ ServiceName: "friends.FriendManagement", HandlerType: (*FriendManagementServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetFriendList", Handler: _FriendManagement_GetFriendList_Handler, }, { MethodName: "GetIncomingFriendRequests", Handler: _FriendManagement_GetIncomingFriendRequests_Handler, }, { MethodName: "GetOutgoingFriendRequests", Handler: _FriendManagement_GetOutgoingFriendRequests_Handler, }, { MethodName: "SendFriendRequest", Handler: _FriendManagement_SendFriendRequest_Handler, }, { MethodName: "AcceptFriendRequest", Handler: _FriendManagement_AcceptFriendRequest_Handler, }, { MethodName: "DeclineFriendRequest", Handler: _FriendManagement_DeclineFriendRequest_Handler, }, { MethodName: "RemoveFriend", Handler: _FriendManagement_RemoveFriend_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/friends/friends.proto", }
FriendManagement_ServiceDesc is the grpc.ServiceDesc for FriendManagement service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFriendManagementServer ¶
func RegisterFriendManagementServer(s grpc.ServiceRegistrar, srv FriendManagementServer)
Types ¶
type AcceptFriendRequestRequest ¶
type AcceptFriendRequestRequest struct { RequestId int32 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Request ID of the friend request // contains filtered or unexported fields }
Messages for accepting a friend request
func (*AcceptFriendRequestRequest) Descriptor
deprecated
func (*AcceptFriendRequestRequest) Descriptor() ([]byte, []int)
Deprecated: Use AcceptFriendRequestRequest.ProtoReflect.Descriptor instead.
func (*AcceptFriendRequestRequest) GetRequestId ¶
func (x *AcceptFriendRequestRequest) GetRequestId() int32
func (*AcceptFriendRequestRequest) ProtoMessage ¶
func (*AcceptFriendRequestRequest) ProtoMessage()
func (*AcceptFriendRequestRequest) ProtoReflect ¶
func (x *AcceptFriendRequestRequest) ProtoReflect() protoreflect.Message
func (*AcceptFriendRequestRequest) Reset ¶
func (x *AcceptFriendRequestRequest) Reset()
func (*AcceptFriendRequestRequest) String ¶
func (x *AcceptFriendRequestRequest) String() string
type AcceptFriendRequestResponse ¶
type AcceptFriendRequestResponse struct { Status FriendRequestStatus `protobuf:"varint,1,opt,name=status,proto3,enum=friends.FriendRequestStatus" json:"status,omitempty"` // Status of the operation (e.g., "ACCEPTED", "FAILED") Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Optional message for additional context Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // When the request was accepted // contains filtered or unexported fields }
func (*AcceptFriendRequestResponse) Descriptor
deprecated
func (*AcceptFriendRequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use AcceptFriendRequestResponse.ProtoReflect.Descriptor instead.
func (*AcceptFriendRequestResponse) GetMessage ¶
func (x *AcceptFriendRequestResponse) GetMessage() string
func (*AcceptFriendRequestResponse) GetStatus ¶
func (x *AcceptFriendRequestResponse) GetStatus() FriendRequestStatus
func (*AcceptFriendRequestResponse) GetTimestamp ¶
func (x *AcceptFriendRequestResponse) GetTimestamp() *timestamppb.Timestamp
func (*AcceptFriendRequestResponse) ProtoMessage ¶
func (*AcceptFriendRequestResponse) ProtoMessage()
func (*AcceptFriendRequestResponse) ProtoReflect ¶
func (x *AcceptFriendRequestResponse) ProtoReflect() protoreflect.Message
func (*AcceptFriendRequestResponse) Reset ¶
func (x *AcceptFriendRequestResponse) Reset()
func (*AcceptFriendRequestResponse) String ¶
func (x *AcceptFriendRequestResponse) String() string
type DeclineFriendRequestRequest ¶
type DeclineFriendRequestRequest struct { RequestId int32 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Request ID of the friend request // contains filtered or unexported fields }
Messages for declining a friend request
func (*DeclineFriendRequestRequest) Descriptor
deprecated
func (*DeclineFriendRequestRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeclineFriendRequestRequest.ProtoReflect.Descriptor instead.
func (*DeclineFriendRequestRequest) GetRequestId ¶
func (x *DeclineFriendRequestRequest) GetRequestId() int32
func (*DeclineFriendRequestRequest) ProtoMessage ¶
func (*DeclineFriendRequestRequest) ProtoMessage()
func (*DeclineFriendRequestRequest) ProtoReflect ¶
func (x *DeclineFriendRequestRequest) ProtoReflect() protoreflect.Message
func (*DeclineFriendRequestRequest) Reset ¶
func (x *DeclineFriendRequestRequest) Reset()
func (*DeclineFriendRequestRequest) String ¶
func (x *DeclineFriendRequestRequest) String() string
type DeclineFriendRequestResponse ¶
type DeclineFriendRequestResponse struct { Status FriendRequestStatus `protobuf:"varint,1,opt,name=status,proto3,enum=friends.FriendRequestStatus" json:"status,omitempty"` // Status of the operation (e.g., "DECLINED", "FAILED") Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Optional message for additional context Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // When the request was declined // contains filtered or unexported fields }
func (*DeclineFriendRequestResponse) Descriptor
deprecated
func (*DeclineFriendRequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeclineFriendRequestResponse.ProtoReflect.Descriptor instead.
func (*DeclineFriendRequestResponse) GetMessage ¶
func (x *DeclineFriendRequestResponse) GetMessage() string
func (*DeclineFriendRequestResponse) GetStatus ¶
func (x *DeclineFriendRequestResponse) GetStatus() FriendRequestStatus
func (*DeclineFriendRequestResponse) GetTimestamp ¶
func (x *DeclineFriendRequestResponse) GetTimestamp() *timestamppb.Timestamp
func (*DeclineFriendRequestResponse) ProtoMessage ¶
func (*DeclineFriendRequestResponse) ProtoMessage()
func (*DeclineFriendRequestResponse) ProtoReflect ¶
func (x *DeclineFriendRequestResponse) ProtoReflect() protoreflect.Message
func (*DeclineFriendRequestResponse) Reset ¶
func (x *DeclineFriendRequestResponse) Reset()
func (*DeclineFriendRequestResponse) String ¶
func (x *DeclineFriendRequestResponse) String() string
type Friend ¶
type Friend struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // User ID of the friend Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // Username of the friend AddedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=added_at,json=addedAt,proto3" json:"added_at,omitempty"` // When the friend was added // contains filtered or unexported fields }
Friend information
func (*Friend) Descriptor
deprecated
func (*Friend) GetAddedAt ¶
func (x *Friend) GetAddedAt() *timestamppb.Timestamp
func (*Friend) GetUsername ¶
func (*Friend) ProtoMessage ¶
func (*Friend) ProtoMessage()
func (*Friend) ProtoReflect ¶
func (x *Friend) ProtoReflect() protoreflect.Message
type FriendManagementClient ¶
type FriendManagementClient interface { GetFriendList(ctx context.Context, in *GetFriendListRequest, opts ...grpc.CallOption) (*GetFriendListResponse, error) GetIncomingFriendRequests(ctx context.Context, in *GetIncomingFriendRequestsRequest, opts ...grpc.CallOption) (*GetIncomingFriendRequestsResponse, error) GetOutgoingFriendRequests(ctx context.Context, in *GetOutgoingFriendRequestsRequest, opts ...grpc.CallOption) (*GetOutgoingFriendRequestsResponse, error) SendFriendRequest(ctx context.Context, in *SendFriendRequestRequest, opts ...grpc.CallOption) (*SendFriendRequestResponse, error) AcceptFriendRequest(ctx context.Context, in *AcceptFriendRequestRequest, opts ...grpc.CallOption) (*AcceptFriendRequestResponse, error) DeclineFriendRequest(ctx context.Context, in *DeclineFriendRequestRequest, opts ...grpc.CallOption) (*DeclineFriendRequestResponse, error) RemoveFriend(ctx context.Context, in *RemoveFriendRequest, opts ...grpc.CallOption) (*RemoveFriendResponse, error) }
FriendManagementClient is the client API for FriendManagement 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.
Service definition for Friend Management
func NewFriendManagementClient ¶
func NewFriendManagementClient(cc grpc.ClientConnInterface) FriendManagementClient
type FriendManagementServer ¶
type FriendManagementServer interface { GetFriendList(context.Context, *GetFriendListRequest) (*GetFriendListResponse, error) GetIncomingFriendRequests(context.Context, *GetIncomingFriendRequestsRequest) (*GetIncomingFriendRequestsResponse, error) GetOutgoingFriendRequests(context.Context, *GetOutgoingFriendRequestsRequest) (*GetOutgoingFriendRequestsResponse, error) SendFriendRequest(context.Context, *SendFriendRequestRequest) (*SendFriendRequestResponse, error) AcceptFriendRequest(context.Context, *AcceptFriendRequestRequest) (*AcceptFriendRequestResponse, error) DeclineFriendRequest(context.Context, *DeclineFriendRequestRequest) (*DeclineFriendRequestResponse, error) RemoveFriend(context.Context, *RemoveFriendRequest) (*RemoveFriendResponse, error) // contains filtered or unexported methods }
FriendManagementServer is the server API for FriendManagement service. All implementations must embed UnimplementedFriendManagementServer for forward compatibility.
Service definition for Friend Management
type FriendRequest ¶
type FriendRequest struct { RequestId int32 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Unique ID of the friend request SenderId int32 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` // User ID of the sender RecipientId int32 `protobuf:"varint,3,opt,name=recipient_id,json=recipientId,proto3" json:"recipient_id,omitempty"` // User ID of the recipient Status FriendRequestStatus `protobuf:"varint,4,opt,name=status,proto3,enum=friends.FriendRequestStatus" json:"status,omitempty"` // Status of the friend request (e.g., "PENDING", "ACCEPTED", "DECLINED") CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // When the request was created SenderUsername string `protobuf:"bytes,6,opt,name=sender_username,json=senderUsername,proto3" json:"sender_username,omitempty"` // Username of the sender RecipientUsername string `protobuf:"bytes,7,opt,name=recipient_username,json=recipientUsername,proto3" json:"recipient_username,omitempty"` // Username of the recipient // contains filtered or unexported fields }
Friend request information
func (*FriendRequest) Descriptor
deprecated
func (*FriendRequest) Descriptor() ([]byte, []int)
Deprecated: Use FriendRequest.ProtoReflect.Descriptor instead.
func (*FriendRequest) GetCreatedAt ¶
func (x *FriendRequest) GetCreatedAt() *timestamppb.Timestamp
func (*FriendRequest) GetRecipientId ¶
func (x *FriendRequest) GetRecipientId() int32
func (*FriendRequest) GetRecipientUsername ¶
func (x *FriendRequest) GetRecipientUsername() string
func (*FriendRequest) GetRequestId ¶
func (x *FriendRequest) GetRequestId() int32
func (*FriendRequest) GetSenderId ¶
func (x *FriendRequest) GetSenderId() int32
func (*FriendRequest) GetSenderUsername ¶
func (x *FriendRequest) GetSenderUsername() string
func (*FriendRequest) GetStatus ¶
func (x *FriendRequest) GetStatus() FriendRequestStatus
func (*FriendRequest) ProtoMessage ¶
func (*FriendRequest) ProtoMessage()
func (*FriendRequest) ProtoReflect ¶
func (x *FriendRequest) ProtoReflect() protoreflect.Message
func (*FriendRequest) Reset ¶
func (x *FriendRequest) Reset()
func (*FriendRequest) String ¶
func (x *FriendRequest) String() string
type FriendRequestStatus ¶
type FriendRequestStatus int32
Enum for friend request statuses
const ( FriendRequestStatus_UNKNOWN FriendRequestStatus = 0 // Default status FriendRequestStatus_PENDING FriendRequestStatus = 1 // Friend request is pending FriendRequestStatus_ACCEPTED FriendRequestStatus = 2 // Friend request has been accepted FriendRequestStatus_DECLINED FriendRequestStatus = 3 // Friend request has been declined FriendRequestStatus_CANCELED FriendRequestStatus = 4 // Friend request has been canceled FriendRequestStatus_FAILED FriendRequestStatus = 5 // Operation related to the friend request failed )
func (FriendRequestStatus) Descriptor ¶
func (FriendRequestStatus) Descriptor() protoreflect.EnumDescriptor
func (FriendRequestStatus) Enum ¶
func (x FriendRequestStatus) Enum() *FriendRequestStatus
func (FriendRequestStatus) EnumDescriptor
deprecated
func (FriendRequestStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use FriendRequestStatus.Descriptor instead.
func (FriendRequestStatus) Number ¶
func (x FriendRequestStatus) Number() protoreflect.EnumNumber
func (FriendRequestStatus) String ¶
func (x FriendRequestStatus) String() string
func (FriendRequestStatus) Type ¶
func (FriendRequestStatus) Type() protoreflect.EnumType
type GetFriendListRequest ¶
type GetFriendListRequest struct {
// contains filtered or unexported fields
}
Messages for fetching the friend list
func (*GetFriendListRequest) Descriptor
deprecated
func (*GetFriendListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendListRequest.ProtoReflect.Descriptor instead.
func (*GetFriendListRequest) ProtoMessage ¶
func (*GetFriendListRequest) ProtoMessage()
func (*GetFriendListRequest) ProtoReflect ¶
func (x *GetFriendListRequest) ProtoReflect() protoreflect.Message
func (*GetFriendListRequest) Reset ¶
func (x *GetFriendListRequest) Reset()
func (*GetFriendListRequest) String ¶
func (x *GetFriendListRequest) String() string
type GetFriendListResponse ¶
type GetFriendListResponse struct { Friends []*Friend `protobuf:"bytes,1,rep,name=friends,proto3" json:"friends,omitempty"` // contains filtered or unexported fields }
func (*GetFriendListResponse) Descriptor
deprecated
func (*GetFriendListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendListResponse.ProtoReflect.Descriptor instead.
func (*GetFriendListResponse) GetFriends ¶
func (x *GetFriendListResponse) GetFriends() []*Friend
func (*GetFriendListResponse) ProtoMessage ¶
func (*GetFriendListResponse) ProtoMessage()
func (*GetFriendListResponse) ProtoReflect ¶
func (x *GetFriendListResponse) ProtoReflect() protoreflect.Message
func (*GetFriendListResponse) Reset ¶
func (x *GetFriendListResponse) Reset()
func (*GetFriendListResponse) String ¶
func (x *GetFriendListResponse) String() string
type GetIncomingFriendRequestsRequest ¶
type GetIncomingFriendRequestsRequest struct {
// contains filtered or unexported fields
}
Messages for fetching incoming friend requests
func (*GetIncomingFriendRequestsRequest) Descriptor
deprecated
func (*GetIncomingFriendRequestsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIncomingFriendRequestsRequest.ProtoReflect.Descriptor instead.
func (*GetIncomingFriendRequestsRequest) ProtoMessage ¶
func (*GetIncomingFriendRequestsRequest) ProtoMessage()
func (*GetIncomingFriendRequestsRequest) ProtoReflect ¶
func (x *GetIncomingFriendRequestsRequest) ProtoReflect() protoreflect.Message
func (*GetIncomingFriendRequestsRequest) Reset ¶
func (x *GetIncomingFriendRequestsRequest) Reset()
func (*GetIncomingFriendRequestsRequest) String ¶
func (x *GetIncomingFriendRequestsRequest) String() string
type GetIncomingFriendRequestsResponse ¶
type GetIncomingFriendRequestsResponse struct { IncomingRequests []*FriendRequest `protobuf:"bytes,1,rep,name=incoming_requests,json=incomingRequests,proto3" json:"incoming_requests,omitempty"` // contains filtered or unexported fields }
func (*GetIncomingFriendRequestsResponse) Descriptor
deprecated
func (*GetIncomingFriendRequestsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetIncomingFriendRequestsResponse.ProtoReflect.Descriptor instead.
func (*GetIncomingFriendRequestsResponse) GetIncomingRequests ¶
func (x *GetIncomingFriendRequestsResponse) GetIncomingRequests() []*FriendRequest
func (*GetIncomingFriendRequestsResponse) ProtoMessage ¶
func (*GetIncomingFriendRequestsResponse) ProtoMessage()
func (*GetIncomingFriendRequestsResponse) ProtoReflect ¶
func (x *GetIncomingFriendRequestsResponse) ProtoReflect() protoreflect.Message
func (*GetIncomingFriendRequestsResponse) Reset ¶
func (x *GetIncomingFriendRequestsResponse) Reset()
func (*GetIncomingFriendRequestsResponse) String ¶
func (x *GetIncomingFriendRequestsResponse) String() string
type GetOutgoingFriendRequestsRequest ¶
type GetOutgoingFriendRequestsRequest struct {
// contains filtered or unexported fields
}
Messages for fetching outgoing friend requests
func (*GetOutgoingFriendRequestsRequest) Descriptor
deprecated
func (*GetOutgoingFriendRequestsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOutgoingFriendRequestsRequest.ProtoReflect.Descriptor instead.
func (*GetOutgoingFriendRequestsRequest) ProtoMessage ¶
func (*GetOutgoingFriendRequestsRequest) ProtoMessage()
func (*GetOutgoingFriendRequestsRequest) ProtoReflect ¶
func (x *GetOutgoingFriendRequestsRequest) ProtoReflect() protoreflect.Message
func (*GetOutgoingFriendRequestsRequest) Reset ¶
func (x *GetOutgoingFriendRequestsRequest) Reset()
func (*GetOutgoingFriendRequestsRequest) String ¶
func (x *GetOutgoingFriendRequestsRequest) String() string
type GetOutgoingFriendRequestsResponse ¶
type GetOutgoingFriendRequestsResponse struct { OutgoingRequests []*FriendRequest `protobuf:"bytes,1,rep,name=outgoing_requests,json=outgoingRequests,proto3" json:"outgoing_requests,omitempty"` // contains filtered or unexported fields }
func (*GetOutgoingFriendRequestsResponse) Descriptor
deprecated
func (*GetOutgoingFriendRequestsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOutgoingFriendRequestsResponse.ProtoReflect.Descriptor instead.
func (*GetOutgoingFriendRequestsResponse) GetOutgoingRequests ¶
func (x *GetOutgoingFriendRequestsResponse) GetOutgoingRequests() []*FriendRequest
func (*GetOutgoingFriendRequestsResponse) ProtoMessage ¶
func (*GetOutgoingFriendRequestsResponse) ProtoMessage()
func (*GetOutgoingFriendRequestsResponse) ProtoReflect ¶
func (x *GetOutgoingFriendRequestsResponse) ProtoReflect() protoreflect.Message
func (*GetOutgoingFriendRequestsResponse) Reset ¶
func (x *GetOutgoingFriendRequestsResponse) Reset()
func (*GetOutgoingFriendRequestsResponse) String ¶
func (x *GetOutgoingFriendRequestsResponse) String() string
type RemoveFriendRequest ¶
type RemoveFriendRequest struct { FriendId int32 `protobuf:"varint,1,opt,name=friend_id,json=friendId,proto3" json:"friend_id,omitempty"` // Friend's user ID to remove // contains filtered or unexported fields }
Messages for removing a friend
func (*RemoveFriendRequest) Descriptor
deprecated
func (*RemoveFriendRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFriendRequest.ProtoReflect.Descriptor instead.
func (*RemoveFriendRequest) GetFriendId ¶
func (x *RemoveFriendRequest) GetFriendId() int32
func (*RemoveFriendRequest) ProtoMessage ¶
func (*RemoveFriendRequest) ProtoMessage()
func (*RemoveFriendRequest) ProtoReflect ¶
func (x *RemoveFriendRequest) ProtoReflect() protoreflect.Message
func (*RemoveFriendRequest) Reset ¶
func (x *RemoveFriendRequest) Reset()
func (*RemoveFriendRequest) String ¶
func (x *RemoveFriendRequest) String() string
type RemoveFriendResponse ¶
type RemoveFriendResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates if the removal was successful Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Optional message for additional context Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // When the friend was removed // contains filtered or unexported fields }
func (*RemoveFriendResponse) Descriptor
deprecated
func (*RemoveFriendResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFriendResponse.ProtoReflect.Descriptor instead.
func (*RemoveFriendResponse) GetMessage ¶
func (x *RemoveFriendResponse) GetMessage() string
func (*RemoveFriendResponse) GetSuccess ¶
func (x *RemoveFriendResponse) GetSuccess() bool
func (*RemoveFriendResponse) GetTimestamp ¶
func (x *RemoveFriendResponse) GetTimestamp() *timestamppb.Timestamp
func (*RemoveFriendResponse) ProtoMessage ¶
func (*RemoveFriendResponse) ProtoMessage()
func (*RemoveFriendResponse) ProtoReflect ¶
func (x *RemoveFriendResponse) ProtoReflect() protoreflect.Message
func (*RemoveFriendResponse) Reset ¶
func (x *RemoveFriendResponse) Reset()
func (*RemoveFriendResponse) String ¶
func (x *RemoveFriendResponse) String() string
type SendFriendRequestRequest ¶
type SendFriendRequestRequest struct { RecipientUsername string `protobuf:"bytes,1,opt,name=recipient_username,json=recipientUsername,proto3" json:"recipient_username,omitempty"` // Recipient's username // contains filtered or unexported fields }
Messages for sending a friend request
func (*SendFriendRequestRequest) Descriptor
deprecated
func (*SendFriendRequestRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendFriendRequestRequest.ProtoReflect.Descriptor instead.
func (*SendFriendRequestRequest) GetRecipientUsername ¶
func (x *SendFriendRequestRequest) GetRecipientUsername() string
func (*SendFriendRequestRequest) ProtoMessage ¶
func (*SendFriendRequestRequest) ProtoMessage()
func (*SendFriendRequestRequest) ProtoReflect ¶
func (x *SendFriendRequestRequest) ProtoReflect() protoreflect.Message
func (*SendFriendRequestRequest) Reset ¶
func (x *SendFriendRequestRequest) Reset()
func (*SendFriendRequestRequest) String ¶
func (x *SendFriendRequestRequest) String() string
type SendFriendRequestResponse ¶
type SendFriendRequestResponse struct { Status FriendRequestStatus `protobuf:"varint,1,opt,name=status,proto3,enum=friends.FriendRequestStatus" json:"status,omitempty"` // Status of the friend request operation Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Optional message for additional context Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // When the request was processed // contains filtered or unexported fields }
func (*SendFriendRequestResponse) Descriptor
deprecated
func (*SendFriendRequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendFriendRequestResponse.ProtoReflect.Descriptor instead.
func (*SendFriendRequestResponse) GetMessage ¶
func (x *SendFriendRequestResponse) GetMessage() string
func (*SendFriendRequestResponse) GetStatus ¶
func (x *SendFriendRequestResponse) GetStatus() FriendRequestStatus
func (*SendFriendRequestResponse) GetTimestamp ¶
func (x *SendFriendRequestResponse) GetTimestamp() *timestamppb.Timestamp
func (*SendFriendRequestResponse) ProtoMessage ¶
func (*SendFriendRequestResponse) ProtoMessage()
func (*SendFriendRequestResponse) ProtoReflect ¶
func (x *SendFriendRequestResponse) ProtoReflect() protoreflect.Message
func (*SendFriendRequestResponse) Reset ¶
func (x *SendFriendRequestResponse) Reset()
func (*SendFriendRequestResponse) String ¶
func (x *SendFriendRequestResponse) String() string
type UnimplementedFriendManagementServer ¶
type UnimplementedFriendManagementServer struct{}
UnimplementedFriendManagementServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedFriendManagementServer) AcceptFriendRequest ¶
func (UnimplementedFriendManagementServer) AcceptFriendRequest(context.Context, *AcceptFriendRequestRequest) (*AcceptFriendRequestResponse, error)
func (UnimplementedFriendManagementServer) DeclineFriendRequest ¶
func (UnimplementedFriendManagementServer) DeclineFriendRequest(context.Context, *DeclineFriendRequestRequest) (*DeclineFriendRequestResponse, error)
func (UnimplementedFriendManagementServer) GetFriendList ¶
func (UnimplementedFriendManagementServer) GetFriendList(context.Context, *GetFriendListRequest) (*GetFriendListResponse, error)
func (UnimplementedFriendManagementServer) GetIncomingFriendRequests ¶
func (UnimplementedFriendManagementServer) GetIncomingFriendRequests(context.Context, *GetIncomingFriendRequestsRequest) (*GetIncomingFriendRequestsResponse, error)
func (UnimplementedFriendManagementServer) GetOutgoingFriendRequests ¶
func (UnimplementedFriendManagementServer) GetOutgoingFriendRequests(context.Context, *GetOutgoingFriendRequestsRequest) (*GetOutgoingFriendRequestsResponse, error)
func (UnimplementedFriendManagementServer) RemoveFriend ¶
func (UnimplementedFriendManagementServer) RemoveFriend(context.Context, *RemoveFriendRequest) (*RemoveFriendResponse, error)
func (UnimplementedFriendManagementServer) SendFriendRequest ¶
func (UnimplementedFriendManagementServer) SendFriendRequest(context.Context, *SendFriendRequestRequest) (*SendFriendRequestResponse, error)
type UnsafeFriendManagementServer ¶
type UnsafeFriendManagementServer interface {
// contains filtered or unexported methods
}
UnsafeFriendManagementServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FriendManagementServer will result in compilation errors.