service

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadMatchedPushServer

func LoadMatchedPushServer(ctx context.Context) (string, error)

Types

type FriendService

type FriendService struct {
	// contains filtered or unexported fields
}

func GetUserRelationService

func GetUserRelationService() *FriendService

func (*FriendService) AcceptFriend

func (*FriendService) AddFriend

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 (*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

type SendMessageService

type SendMessageService struct {
	messagev1.UnimplementedSendMessagerServer
	// contains filtered or unexported fields
}

func GetSendMessageService

func GetSendMessageService() *SendMessageService

func (*SendMessageService) Broadcast

func (*SendMessageService) SendMessage

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func GetUserService

func GetUserService() *UserService

func (*UserService) Login

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.

Jump to

Keyboard shortcuts

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