Documentation ¶
Index ¶
- type AdminClient
- func (o *AdminClient) CheckInvitationCode(ctx context.Context, invitationCode string) error
- func (o *AdminClient) CheckLogin(ctx context.Context, userID string, ip string) error
- func (o *AdminClient) CheckNilOrAdmin(ctx context.Context) (bool, error)
- func (o *AdminClient) CheckRegister(ctx context.Context, ip string) error
- func (o *AdminClient) CreateToken(ctx context.Context, userID string, userType int32) (*admin.CreateTokenResp, error)
- func (o *AdminClient) GetConfig(ctx context.Context) (map[string]string, error)
- func (o *AdminClient) GetDefaultFriendUserID(ctx context.Context) ([]string, error)
- func (o *AdminClient) GetDefaultGroupID(ctx context.Context) ([]string, error)
- func (o *AdminClient) InvalidateToken(ctx context.Context, userID string) error
- func (o *AdminClient) UseInvitationCode(ctx context.Context, userID string, invitationCode string) error
- type ChatClient
- func (o *ChatClient) CheckUserExist(ctx context.Context, req *chat.CheckUserExistReq) (resp *chat.CheckUserExistResp, err error)
- func (o *ChatClient) DelUserAccount(ctx context.Context, req *chat.DelUserAccountReq) (resp *chat.DelUserAccountResp, err error)
- func (o *ChatClient) FindUserFullInfo(ctx context.Context, userIDs []string) ([]*common.UserFullInfo, error)
- func (o *ChatClient) FindUserPublicInfo(ctx context.Context, userIDs []string) ([]*common.UserPublicInfo, error)
- func (o *ChatClient) GetUserFullInfo(ctx context.Context, userID string) (*common.UserFullInfo, error)
- func (o *ChatClient) GetUserPublicInfo(ctx context.Context, userID string) (*common.UserPublicInfo, error)
- func (o *ChatClient) MapUserFullInfo(ctx context.Context, userIDs []string) (map[string]*common.UserFullInfo, error)
- func (o *ChatClient) MapUserPublicInfo(ctx context.Context, userIDs []string) (map[string]*common.UserPublicInfo, error)
- func (o *ChatClient) UpdateUser(ctx context.Context, req *chat.UpdateUserInfoReq) error
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 (*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) 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 ¶
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
Click to show internal directories.
Click to hide internal directories.