Documentation ¶
Index ¶
- Variables
- type TestSDK
- func (s *TestSDK) CreateCommonGroup(ctx context.Context, memberNum int) (*sdkws.GroupInfo, error)
- func (s *TestSDK) CreateLargeGroup(ctx context.Context) (*sdkws.GroupInfo, error)
- func (s *TestSDK) GetAllFriends(ctx context.Context) ([]*model_struct.LocalFriend, error)
- func (s *TestSDK) GetAllJoinedGroups(ctx context.Context) ([]*sdkws.GroupInfo, int, error)
- func (s *TestSDK) GetTotalConversationCount(ctx context.Context) (int, error)
- func (s *TestSDK) SendGroupMsg(ctx context.Context, msg *sdk_struct.MsgStruct, groupID string) (*sdk_struct.MsgStruct, error)
- func (s *TestSDK) SendSingleMsg(ctx context.Context, msg *sdk_struct.MsgStruct, receiveID string) (*sdk_struct.MsgStruct, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TestSDKs SDK slice. Index is user num TestSDKs []*TestSDK )
Functions ¶
This section is empty.
Types ¶
type TestSDK ¶
type TestSDK struct { UserID string Num int SDK *open_im_sdk.LoginMgr }
func NewTestSDK ¶
func NewTestSDK(userID string, num int, loginMgr *open_im_sdk.LoginMgr) *TestSDK
func (*TestSDK) CreateCommonGroup ¶
CreateCommonGroup create a regular group. Group members are the users with IDs starting from the current user's ID up to the next memberNum users.
func (*TestSDK) CreateLargeGroup ¶
CreateLargeGroup create a large group. Group members are all users.
func (*TestSDK) GetAllFriends ¶ added in v3.8.1
func (s *TestSDK) GetAllFriends(ctx context.Context) ([]*model_struct.LocalFriend, error)
func (*TestSDK) GetAllJoinedGroups ¶ added in v3.8.1
func (*TestSDK) GetTotalConversationCount ¶ added in v3.8.1
func (*TestSDK) SendGroupMsg ¶ added in v3.8.1
func (s *TestSDK) SendGroupMsg(ctx context.Context, msg *sdk_struct.MsgStruct, groupID string) (*sdk_struct.MsgStruct, error)
func (*TestSDK) SendSingleMsg ¶ added in v3.8.1
func (s *TestSDK) SendSingleMsg(ctx context.Context, msg *sdk_struct.MsgStruct, receiveID string) (*sdk_struct.MsgStruct, error)
Click to show internal directories.
Click to hide internal directories.