Documentation ¶
Index ¶
- type FriendService
- func (s *FriendService) AddFriend(ctx context.Context, req *friendpb.BaseFriendRequest) (*friendpb.AddFriendResponse, error)
- func (s *FriendService) CheckSendMessageAbility(ctx context.Context, req *friendpb.CheckSendMessageAbilityRequest) (*friendpb.CheckSendMessageAbilityResponse, error)
- func (s *FriendService) ConfirmFriendRequest(ctx context.Context, req *friendpb.ConfirmFriendRequestRequest) (*errors.Error, error)
- func (s *FriendService) GetFriend(ctx context.Context, req *friendpb.BaseFriendRequest) (*friendpb.GetFriendResponse, error)
- func (s *FriendService) GetFriendRequest(ctx context.Context, req *friendpb.BaseFriendRequest) (*friendpb.GetFriendRequestResponse, error)
- func (s *FriendService) IsFriend(ctx context.Context, req *friendpb.BaseFriendRequest) (*errors.Error, error)
- func (s *FriendService) QueryFriendList(ctx context.Context, req *friendpb.QueryFriendListRequest) (*friendpb.QueryFriendListResponse, error)
- func (s *FriendService) QueryFriendRequestList(ctx context.Context, req *friendpb.QueryFriendRequestListRequest) (*friendpb.QueryFriendRequestListResponse, error)
- func (s *FriendService) UpdateFriendStatus(ctx context.Context, req *friendpb.UpdateFriendStatusRequest) (*errors.Error, error)
- type GroupService
- func (s *GroupService) AddGroupMember(ctx context.Context, req *grouppb.ChangeGroupMemberRequest) (*grouppb.ChangeGroupMemberResponse, error)
- func (s *GroupService) CreateGroup(ctx context.Context, req *grouppb.CreateGroupRequest) (*grouppb.CreateGroupResponse, error)
- func (s *GroupService) DeleteGroup(ctx context.Context, req *grouppb.DeleteGroupRequest) (*errors.Error, error)
- func (s *GroupService) GetGroup(ctx context.Context, req *grouppb.GetGroupRequest) (*grouppb.GetGroupResponse, error)
- func (s *GroupService) ListGroups(ctx context.Context, req *grouppb.ListGroupsRequest) (*grouppb.ListGroupsResponse, error)
- func (s *GroupService) RemoveGroupMember(ctx context.Context, req *grouppb.ChangeGroupMemberRequest) (*grouppb.ChangeGroupMemberResponse, error)
- func (s *GroupService) UpdateGroup(ctx context.Context, req *grouppb.UpdateGroupRequest) (*grouppb.UpdateGroupResponse, error)
- type UserService
- func (s *UserService) CreateUser(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.UserResponse, error)
- func (s *UserService) GetUser(ctx context.Context, req *userv1.GetUserInfoRequest) (*userv1.UserResponse, error)
- func (s *UserService) QueryUser(ctx context.Context, req *userv1.QueryUserRequest) (*userv1.UserResponse, error)
- func (s *UserService) UpdateUser(ctx context.Context, req *userv1.UpdateUserRequest) (*userv1.UserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FriendService ¶
type FriendService struct { friendpb.UnimplementedFriendServiceServer // contains filtered or unexported fields }
FriendService implements friendpb.FriendServiceServer
func GetFriendService ¶
func GetFriendService() *FriendService
func (*FriendService) AddFriend ¶
func (s *FriendService) AddFriend(ctx context.Context, req *friendpb.BaseFriendRequest) ( *friendpb.AddFriendResponse, error)
func (*FriendService) CheckSendMessageAbility ¶
func (s *FriendService) CheckSendMessageAbility(ctx context.Context, req *friendpb.CheckSendMessageAbilityRequest) ( *friendpb.CheckSendMessageAbilityResponse, error)
func (*FriendService) ConfirmFriendRequest ¶
func (s *FriendService) ConfirmFriendRequest(ctx context.Context, req *friendpb.ConfirmFriendRequestRequest) ( *errors.Error, error)
func (*FriendService) GetFriend ¶
func (s *FriendService) GetFriend(ctx context.Context, req *friendpb.BaseFriendRequest) ( *friendpb.GetFriendResponse, error)
func (*FriendService) GetFriendRequest ¶
func (s *FriendService) GetFriendRequest(ctx context.Context, req *friendpb.BaseFriendRequest) ( *friendpb.GetFriendRequestResponse, error)
func (*FriendService) IsFriend ¶
func (s *FriendService) IsFriend(ctx context.Context, req *friendpb.BaseFriendRequest) ( *errors.Error, error)
func (*FriendService) QueryFriendList ¶
func (s *FriendService) QueryFriendList(ctx context.Context, req *friendpb.QueryFriendListRequest) ( *friendpb.QueryFriendListResponse, error)
func (*FriendService) QueryFriendRequestList ¶
func (s *FriendService) QueryFriendRequestList(ctx context.Context, req *friendpb.QueryFriendRequestListRequest) ( *friendpb.QueryFriendRequestListResponse, error)
func (*FriendService) UpdateFriendStatus ¶
func (s *FriendService) UpdateFriendStatus(ctx context.Context, req *friendpb.UpdateFriendStatusRequest) ( *errors.Error, error)
UpdateFriendStatus update friend status. Second error is grpc error, not business error.
type GroupService ¶
type GroupService struct { grouppb.UnimplementedGroupServiceServer // contains filtered or unexported fields }
func GetGroupService ¶
func GetGroupService() *GroupService
func (*GroupService) AddGroupMember ¶
func (s *GroupService) AddGroupMember(ctx context.Context, req *grouppb.ChangeGroupMemberRequest) ( *grouppb.ChangeGroupMemberResponse, error)
func (*GroupService) CreateGroup ¶
func (s *GroupService) CreateGroup(ctx context.Context, req *grouppb.CreateGroupRequest) (*grouppb.CreateGroupResponse, error)
func (*GroupService) DeleteGroup ¶
func (s *GroupService) DeleteGroup(ctx context.Context, req *grouppb.DeleteGroupRequest) (*errors.Error, error)
func (*GroupService) GetGroup ¶
func (s *GroupService) GetGroup(ctx context.Context, req *grouppb.GetGroupRequest) (*grouppb.GetGroupResponse, error)
func (*GroupService) ListGroups ¶
func (s *GroupService) ListGroups(ctx context.Context, req *grouppb.ListGroupsRequest) (*grouppb.ListGroupsResponse, error)
func (*GroupService) RemoveGroupMember ¶
func (s *GroupService) RemoveGroupMember(ctx context.Context, req *grouppb.ChangeGroupMemberRequest) ( *grouppb.ChangeGroupMemberResponse, error)
func (*GroupService) UpdateGroup ¶
func (s *GroupService) UpdateGroup(ctx context.Context, req *grouppb.UpdateGroupRequest) (*grouppb.UpdateGroupResponse, error)
type UserService ¶
type UserService struct { userv1.UnimplementedUserServiceServer // contains filtered or unexported fields }
UserService implements userv1.UserServiceServer
func GetUserService ¶
func GetUserService() *UserService
func (*UserService) CreateUser ¶
func (s *UserService) CreateUser(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.UserResponse, error)
func (*UserService) GetUser ¶
func (s *UserService) GetUser(ctx context.Context, req *userv1.GetUserInfoRequest) (*userv1.UserResponse, error)
func (*UserService) QueryUser ¶
func (s *UserService) QueryUser(ctx context.Context, req *userv1.QueryUserRequest) (*userv1.UserResponse, error)
func (*UserService) UpdateUser ¶
func (s *UserService) UpdateUser(ctx context.Context, req *userv1.UpdateUserRequest) (*userv1.UserResponse, error)
Click to show internal directories.
Click to hide internal directories.