Documentation ¶
Index ¶
- func LoadMatchedPushServer(ctx context.Context) (string, error)
- type FriendService
- func (s *FriendService) AcceptFriend(ctx context.Context, req *friendpb.ConfirmFriendRequestReq) error
- func (s *FriendService) AddFriend(ctx context.Context, req *friendpb.AddFriendRequest) (*friendpb.AddFriendResult, error)
- func (s *FriendService) BlockFriend(ctx context.Context, req *friendpb.BaseFriendRequest) error
- func (s *FriendService) DeleteFriend(ctx context.Context, req *friendpb.BaseFriendRequest) error
- func (s *FriendService) ListUserRelation(ctx context.Context, req *friendpb.QueryFriendListRequest) ([]*friendpb.Friend, error)
- func (s *FriendService) RejectFriend(ctx context.Context, req *friendpb.ConfirmFriendRequestReq) error
- func (s *FriendService) UnblockFriend(ctx context.Context, req *friendpb.BaseFriendRequest) error
- type OfflineMessageService
- type SendMessageService
- type UserService
- func (s *UserService) Login(ctx context.Context, req *userv1.UserLoginRequest) (*userv1.User, error)
- func (s *UserService) QueryUserInfo(ctx context.Context, req *userv1.QueryUserRequest) (*userv1.User, error)
- func (s *UserService) Register(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.User, error)
- func (s *UserService) UpdateUser(ctx context.Context, req *userv1.UpdateUserRequest) (*userv1.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FriendService ¶
type FriendService struct {
// contains filtered or unexported fields
}
func GetUserRelationService ¶
func GetUserRelationService() *FriendService
func (*FriendService) AcceptFriend ¶
func (s *FriendService) AcceptFriend(ctx context.Context, req *friendpb.ConfirmFriendRequestReq) error
func (*FriendService) AddFriend ¶
func (s *FriendService) AddFriend(ctx context.Context, req *friendpb.AddFriendRequest) (*friendpb.AddFriendResult, error)
func (*FriendService) BlockFriend ¶
func (s *FriendService) BlockFriend(ctx context.Context, req *friendpb.BaseFriendRequest) error
func (*FriendService) DeleteFriend ¶
func (s *FriendService) DeleteFriend(ctx context.Context, req *friendpb.BaseFriendRequest) error
func (*FriendService) ListUserRelation ¶
func (s *FriendService) ListUserRelation(ctx context.Context, req *friendpb.QueryFriendListRequest) ( []*friendpb.Friend, error)
func (*FriendService) RejectFriend ¶
func (s *FriendService) RejectFriend(ctx context.Context, req *friendpb.ConfirmFriendRequestReq) error
func (*FriendService) UnblockFriend ¶
func (s *FriendService) UnblockFriend(ctx context.Context, req *friendpb.BaseFriendRequest) error
type OfflineMessageService ¶
type OfflineMessageService struct {
// contains filtered or unexported fields
}
func GetOfflineMessageService ¶
func GetOfflineMessageService() *OfflineMessageService
func (*OfflineMessageService) QueryOfflineMsg ¶
func (s *OfflineMessageService) QueryOfflineMsg(ctx context.Context, req *messagev1.QueryOfflineMessageReq) ( []*messagev1.BriefMessage, error)
type SendMessageService ¶
type SendMessageService struct { messagev1.UnimplementedSendMessagerServer // contains filtered or unexported fields }
func GetSendMessageService ¶
func GetSendMessageService() *SendMessageService
func (*SendMessageService) Broadcast ¶
func (s *SendMessageService) Broadcast(ctx context.Context, req *messagev1.SendMessageReq) (*messagev1.SendMessageResp, error)
func (*SendMessageService) SendMessage ¶
func (s *SendMessageService) SendMessage(ctx context.Context, req *messagev1.SendMessageReq) (*messagev1.SendMessageResp, error)
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func GetUserService ¶
func GetUserService() *UserService
func (*UserService) Login ¶
func (s *UserService) Login(ctx context.Context, req *userv1.UserLoginRequest) (*userv1.User, error)
Login check user login status and return user info
func (*UserService) QueryUserInfo ¶
func (s *UserService) QueryUserInfo(ctx context.Context, req *userv1.QueryUserRequest) (*userv1.User, error)
func (*UserService) Register ¶
func (s *UserService) Register(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.User, error)
Register register user.
func (*UserService) UpdateUser ¶
func (s *UserService) UpdateUser(ctx context.Context, req *userv1.UpdateUserRequest) (*userv1.User, error)
UpdateUser update user info.
Click to show internal directories.
Click to hide internal directories.