chat

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminClient

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

func NewAdminClient

func NewAdminClient(client admin.AdminClient) *AdminClient

func (*AdminClient) CheckInvitationCode

func (o *AdminClient) CheckInvitationCode(ctx context.Context, invitationCode string) error

func (*AdminClient) CheckLogin

func (o *AdminClient) CheckLogin(ctx context.Context, userID string, ip string) error

func (*AdminClient) CheckNilOrAdmin

func (o *AdminClient) CheckNilOrAdmin(ctx context.Context) (bool, error)

func (*AdminClient) CheckRegister

func (o *AdminClient) CheckRegister(ctx context.Context, ip string) error

func (*AdminClient) CreateToken

func (o *AdminClient) CreateToken(ctx context.Context, userID string, userType int32) (*admin.CreateTokenResp, error)

func (*AdminClient) GetConfig

func (o *AdminClient) GetConfig(ctx context.Context) (map[string]string, error)

func (*AdminClient) GetDefaultFriendUserID

func (o *AdminClient) GetDefaultFriendUserID(ctx context.Context) ([]string, error)

func (*AdminClient) GetDefaultGroupID

func (o *AdminClient) GetDefaultGroupID(ctx context.Context) ([]string, error)

func (*AdminClient) InvalidateToken added in v1.8.0

func (o *AdminClient) InvalidateToken(ctx context.Context, userID string) error

func (*AdminClient) UseInvitationCode

func (o *AdminClient) UseInvitationCode(ctx context.Context, userID string, invitationCode string) error

type ChatClient

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

func NewChatClient

func NewChatClient(client chat.ChatClient) *ChatClient

func (*ChatClient) CheckUserExist added in v1.8.0

func (o *ChatClient) CheckUserExist(ctx context.Context, req *chat.CheckUserExistReq) (resp *chat.CheckUserExistResp, err error)

func (*ChatClient) DelUserAccount added in v1.8.0

func (o *ChatClient) DelUserAccount(ctx context.Context, req *chat.DelUserAccountReq) (resp *chat.DelUserAccountResp, err error)

func (*ChatClient) FindUserFullInfo

func (o *ChatClient) FindUserFullInfo(ctx context.Context, userIDs []string) ([]*common.UserFullInfo, error)

func (*ChatClient) FindUserPublicInfo

func (o *ChatClient) FindUserPublicInfo(ctx context.Context, userIDs []string) ([]*common.UserPublicInfo, error)

func (*ChatClient) GetUserFullInfo

func (o *ChatClient) GetUserFullInfo(ctx context.Context, userID string) (*common.UserFullInfo, error)

func (*ChatClient) GetUserPublicInfo

func (o *ChatClient) GetUserPublicInfo(ctx context.Context, userID string) (*common.UserPublicInfo, error)

func (*ChatClient) MapUserFullInfo

func (o *ChatClient) MapUserFullInfo(ctx context.Context, userIDs []string) (map[string]*common.UserFullInfo, error)

func (*ChatClient) MapUserPublicInfo

func (o *ChatClient) MapUserPublicInfo(ctx context.Context, userIDs []string) (map[string]*common.UserPublicInfo, error)

func (*ChatClient) UpdateUser

func (o *ChatClient) UpdateUser(ctx context.Context, req *chat.UpdateUserInfoReq) error

Jump to

Keyboard shortcuts

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