Documentation ¶
Index ¶
- type ApiCaller
- type Caller
- func (c *Caller) AccountCheckSingle(ctx context.Context, userID string) (bool, error)
- func (c *Caller) FindGroupInfo(ctx context.Context, groupIDs []string) ([]*sdkws.GroupInfo, error)
- func (c *Caller) ForceOffLine(ctx context.Context, userID string) error
- func (c *Caller) FriendUserIDs(ctx context.Context, userID string) ([]string, error)
- func (c *Caller) GetAdminTokenCache(ctx context.Context, userID string) (string, error)
- func (c *Caller) GetUserToken(ctx context.Context, userID string, platformID int32) (string, error)
- func (c *Caller) ImAdminTokenWithDefaultAdmin(ctx context.Context) (string, error)
- func (c *Caller) ImportFriend(ctx context.Context, ownerUserID string, friendUserIDs []string) error
- func (c *Caller) InviteToGroup(ctx context.Context, userID string, groupIDs []string) error
- func (c *Caller) RegisterUser(ctx context.Context, users []*sdkws.UserInfo) error
- func (c *Caller) UpdateUserInfo(ctx context.Context, userID string, nickName string, faceURL string) error
- func (c *Caller) UserRegisterCount(ctx context.Context, start int64, end int64) (map[string]int64, int64, error)
- type CallerInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiCaller ¶
type ApiCaller[Req, Resp any] interface { Call(ctx context.Context, apiPrefix string, req *Req) (*Resp, error) }
func NewApiCaller ¶
type Caller ¶
type Caller struct {
// contains filtered or unexported fields
}
func (*Caller) AccountCheckSingle ¶ added in v1.8.0
return true when isUserNotExist.
func (*Caller) FindGroupInfo ¶
func (*Caller) ForceOffLine ¶
func (*Caller) FriendUserIDs ¶
func (*Caller) GetAdminTokenCache ¶ added in v1.8.3
func (*Caller) GetUserToken ¶ added in v1.8.2
func (*Caller) ImAdminTokenWithDefaultAdmin ¶
func (*Caller) ImportFriend ¶
func (*Caller) InviteToGroup ¶
func (*Caller) RegisterUser ¶
func (*Caller) UpdateUserInfo ¶
type CallerInterface ¶
type CallerInterface interface { ImAdminTokenWithDefaultAdmin(ctx context.Context) (string, error) ImportFriend(ctx context.Context, ownerUserID string, friendUserID []string) error GetUserToken(ctx context.Context, userID string, platform int32) (string, error) GetAdminTokenCache(ctx context.Context, userID string) (string, error) InviteToGroup(ctx context.Context, userID string, groupIDs []string) error UpdateUserInfo(ctx context.Context, userID string, nickName string, faceURL string) error ForceOffLine(ctx context.Context, userID string) error RegisterUser(ctx context.Context, users []*sdkws.UserInfo) error FindGroupInfo(ctx context.Context, groupIDs []string) ([]*sdkws.GroupInfo, error) UserRegisterCount(ctx context.Context, start int64, end int64) (map[string]int64, int64, error) FriendUserIDs(ctx context.Context, userID string) ([]string, error) AccountCheckSingle(ctx context.Context, userID string) (bool, error) }
Click to show internal directories.
Click to hide internal directories.