sdk

package
v3.8.1-rc.20 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

func (s *TestSDK) CreateCommonGroup(ctx context.Context, memberNum int) (*sdkws.GroupInfo, error)

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

func (s *TestSDK) CreateLargeGroup(ctx context.Context) (*sdkws.GroupInfo, error)

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 (s *TestSDK) GetAllJoinedGroups(ctx context.Context) ([]*sdkws.GroupInfo, int, error)

func (*TestSDK) GetTotalConversationCount added in v3.8.1

func (s *TestSDK) GetTotalConversationCount(ctx context.Context) (int, error)

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)

Jump to

Keyboard shortcuts

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