test

package
v0.0.0-...-13b6049 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TESTIP = "121.5.182.23"

	//TESTIP  = "open-im-test.rentsoft.cn"
	APIADDR = "http://" + TESTIP + ":10002"

	WSADDR              = "ws://" + TESTIP + ":10001"
	REGISTERADDR        = APIADDR + "/auth/user_register"
	TOKENADDR           = APIADDR + "/auth/user_token"
	SECRET              = "tuoyuntuoyun"
	SENDINTERVAL        = 20
	GETSELFUSERINFO     = APIADDR + "/user/get_self_user_info"
	CREATEGROUP         = APIADDR + constant.CreateGroupRouter
	ACCOUNTCHECK        = APIADDR + "/user/account_check"
	GETGROUPSINFOROUTER = APIADDR + constant.GetGroupsInfoRouter
)
View Source
var AdminToken = ""
View Source
var Friend_uid = "13911112222"
View Source
var (
	INVITEUSERTOGROUP = ""
)
View Source
var LogLevel uint32 = 6
View Source
var LogName = ""
View Source
var MaxNumGoroutine = 100000
View Source
var MemberUserID = "2101502031"
View Source
var PlatformID = int32(1)
View Source
var RecvAllMsg map[string]*SendRecvTime //msgid->send+recv
View Source
var RecvMsgMapLock sync.RWMutex
View Source
var ReliabilityUserA = 1234567
View Source
var ReliabilityUserB = 1234567
View Source
var SendFailedAllMsg map[string]string
View Source
var SendMsgMapLock sync.RWMutex
View Source
var SendSuccAllMsg map[string]*SendRecvTime //msgid->send+recv:
View Source
var TestRoomID = "room_id_111"
View Source
var TestgroupID = "3109164461"

Functions

func CheckReliabilityResult

func CheckReliabilityResult(msgNumOneClient int, clientNum int) bool

func CreateWorkGroup

func CreateWorkGroup(number int) string

func DoSetGroupApplyMemberFriend

func DoSetGroupApplyMemberFriend()

func DoSetGroupInfo

func DoSetGroupInfo()

func DoSetGroupLookMemberInfo

func DoSetGroupLookMemberInfo()

func DoSetGroupVerification

func DoSetGroupVerification()

func DoTest

func DoTest(uid, tk, ws, api string)

func DoTestAccept

func DoTestAccept()

func DoTestAcceptFriendApplication

func DoTestAcceptFriendApplication()

func DoTestAcceptGroupApplication

func DoTestAcceptGroupApplication(uid string)

func DoTestAddFriend

func DoTestAddFriend()

func DoTestAddMessageReactionExtensions

func DoTestAddMessageReactionExtensions(index int, operationID string)

func DoTestAddToBlackList

func DoTestAddToBlackList()

func DoTestCancel

func DoTestCancel()

func DoTestCheckFriend

func DoTestCheckFriend()

func DoTestClearMsg

func DoTestClearMsg()

func DoTestCreateGroup

func DoTestCreateGroup()

func DoTestCreateImageMessageFromFullPath

func DoTestCreateImageMessageFromFullPath() string

func DoTestCreateOtherMessageFromFullPath

func DoTestCreateOtherMessageFromFullPath() string

func DoTestCreateTextMessage

func DoTestCreateTextMessage(text string) string
func DoTestGetOneConversation(sourceID string, sessionType int) {
	var test TestGetOneConversationCallBack
	//GetOneConversation(Friend_uid, SingleChatType, test)
	open_im_sdk.GetOneConversation(sourceID, sessionType, test)

}

func DoTestCreateTextMessageReliability

func DoTestCreateTextMessageReliability(mgr *login.LoginMgr, text string) string

func DoTestCreateVideoMessageFromFullPath

func DoTestCreateVideoMessageFromFullPath() string

func DoTestDeleteAllMsgFromLocalAndSvr

func DoTestDeleteAllMsgFromLocalAndSvr()

func DoTestDeleteConversation

func DoTestDeleteConversation()

func DoTestDeleteConversationMsgFromLocalAndSvr

func DoTestDeleteConversationMsgFromLocalAndSvr(conversationID string)

func DoTestDeleteFromBlackList

func DoTestDeleteFromBlackList()

func DoTestDeleteMessageFromLocalAndSvr

func DoTestDeleteMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, message string)

func DoTestFindMessageList

func DoTestFindMessageList()

func DoTestGetAdvancedHistoryMessageList

func DoTestGetAdvancedHistoryMessageList()

func DoTestGetAllConversation

func DoTestGetAllConversation()

func DoTestGetBlackList

func DoTestGetBlackList()

func DoTestGetConversationListSplit

func DoTestGetConversationListSplit()

func DoTestGetConversationRecvMessageOpt

func DoTestGetConversationRecvMessageOpt(list string)

func DoTestGetConversations

func DoTestGetConversations(conversationIDs string)

func DoTestGetDepartmentInfo

func DoTestGetDepartmentInfo(departmentID string)

func DoTestGetDepartmentMember

func DoTestGetDepartmentMember()

func DoTestGetDepartmentMemberAndSubDepartment

func DoTestGetDepartmentMemberAndSubDepartment()

func DoTestGetDesignatedFriendsInfo

func DoTestGetDesignatedFriendsInfo()

func DoTestGetFriendApplicationList

func DoTestGetFriendApplicationList()

func DoTestGetGroupHistoryMessage

func DoTestGetGroupHistoryMessage()

func DoTestGetGroupsInfo

func DoTestGetGroupsInfo()

func DoTestGetHistoryMessage

func DoTestGetHistoryMessage(userID string)

func DoTestGetHistoryMessageReverse

func DoTestGetHistoryMessageReverse(userID string)

func DoTestGetJoinedGroupList

func DoTestGetJoinedGroupList()

func DoTestGetMessageListReactionExtensions

func DoTestGetMessageListReactionExtensions(operationID string)

func DoTestGetOneConversation

func DoTestGetOneConversation(friendID string)

func DoTestGetParentDepartmentList

func DoTestGetParentDepartmentList(departmentID string)

func DoTestGetRecvGroupApplicationList

func DoTestGetRecvGroupApplicationList()

func DoTestGetSelfUserInfo

func DoTestGetSelfUserInfo()

func DoTestGetSendFriendApplicationList

func DoTestGetSendFriendApplicationList()

func DoTestGetSubDepartment

func DoTestGetSubDepartment()

func DoTestGetUserInDepartment

func DoTestGetUserInDepartment()

func DoTestGetUserReqGroupApplicationList

func DoTestGetUserReqGroupApplicationList()

func DoTestGetUsersInfo

func DoTestGetUsersInfo()

func DoTestHungUp

func DoTestHungUp()

func DoTestInvite

func DoTestInvite(userID string)

func DoTestInviteInGroup

func DoTestInviteInGroup()

func DoTestJoinGroup

func DoTestJoinGroup()

func DoTestMarkGroupMessageAsRead

func DoTestMarkGroupMessageAsRead()

func DoTestQuitGroup

func DoTestQuitGroup()

func DoTestRefuseFriendApplication

func DoTestRefuseFriendApplication()

func DoTestReject

func DoTestReject()

func DoTestSearchGroups

func DoTestSearchGroups()

func DoTestSearchLocalMessages

func DoTestSearchLocalMessages()

func DoTestSearchOrganization

func DoTestSearchOrganization(input string, offset, count int)

func DoTestSendImageMsg

func DoTestSendImageMsg(recvID string)

func DoTestSendMsg

func DoTestSendMsg(index int, sendId, recvID string, groupID string, idx string)

func DoTestSendMsg2

func DoTestSendMsg2(sendId, recvID string)

func DoTestSendMsg2Group

func DoTestSendMsg2Group(sendId, groupID string, index int)

func DoTestSendMsg2GroupWithMessage

func DoTestSendMsg2GroupWithMessage(sendId, groupID string, message string)

func DoTestSendMsg2c2c

func DoTestSendMsg2c2c(sendId, recvID string, index int)

func DoTestSendOtherMsg

func DoTestSendOtherMsg(sendId, recvID string)

func DoTestSendVideo

func DoTestSendVideo(sendId, recvID string)

func DoTestSetAppBackgroundStatus

func DoTestSetAppBackgroundStatus(isBackground bool)

func DoTestSetAppBadge

func DoTestSetAppBadge()

func DoTestSetBurnDuration

func DoTestSetBurnDuration(conversationID string)

func DoTestSetConversationPinned

func DoTestSetConversationPinned(conversationID string, pin bool)

func DoTestSetConversationRecvMessageOpt

func DoTestSetConversationRecvMessageOpt(conversationIDs []string, opt int)

func DoTestSetGroupMemberInfo

func DoTestSetGroupMemberInfo(groupID, userID string, ex string)

func DoTestSetGroupMemberRoleLevel

func DoTestSetGroupMemberRoleLevel(groupID, userID string, roleLevel int)

func DoTestSetMessageReactionExtensions

func DoTestSetMessageReactionExtensions()

func DoTestSetOneConversationPrivateChat

func DoTestSetOneConversationPrivateChat(conversationID string, privateChat bool)

func DoTestSetOneConversationRecvMessageOpt

func DoTestSetOneConversationRecvMessageOpt(conversationID string, opt int)

func DoTestSetSelfInfo

func DoTestSetSelfInfo()

func DoTestSignalGetRoomByGroupID

func DoTestSignalGetRoomByGroupID(groupID string)

func DoTestSignalGetTokenByRoomID

func DoTestSignalGetTokenByRoomID(roomID string)

func DoTestUpdateFcmToken

func DoTestUpdateFcmToken()

func DotestCos

func DotestCos()

func DotestDeleteFriend

func DotestDeleteFriend()

func DotestGetFriendList

func DotestGetFriendList()

func DotestGetGroupMemberList

func DotestGetGroupMemberList()

func DotestGetGroupMemberListByJoinTimeFilter

func DotestGetGroupMemberListByJoinTimeFilter()

func DotestGetRecvGroupApplicationList

func DotestGetRecvGroupApplicationList() string

func DotestInviteUserToGroup

func DotestInviteUserToGroup()

func DotestKickGroupMember

func DotestKickGroupMember()

func DotestRefuseGroupApplication

func DotestRefuseGroupApplication(uid string)

func DotestSearchFriends

func DotestSearchFriends()

func DotestSetFriendRemark

func DotestSetFriendRemark()

func DotestSetGroupMemberNickname

func DotestSetGroupMemberNickname(myUserID string)

func DotestTransferGroupOwner

func DotestTransferGroupOwner()

func DotestUploadFile

func DotestUploadFile()

func GenUid

func GenUid(uid int, prefix string) string

func GetCmd

func GetCmd(myUid int, filename string) int

func GetFileContentAsStringLines

func GetFileContentAsStringLines(filePath string) ([]string, error)

func GetGroupMemberNum

func GetGroupMemberNum(groupID string) uint32

func InOutDoTest

func InOutDoTest(uid, tk, ws, api string)

func InOutDoTestSendMsg

func InOutDoTestSendMsg(sendId, receiverID string)

func InOutLogou

func InOutLogou()

func InOutlllogin

func InOutlllogin(uid, tk string)

func InviteListToGroup

func InviteListToGroup(userIDList []string, groupID string)

func InviteToGroup

func InviteToGroup(userID string, groupID string)

func PressInitAndLogin

func PressInitAndLogin(index int, uid, tk, ws, api string)

func PressOne

func PressOne(index int, beforeLoginSleep int, isSendMsg bool, intervalSleepMS int)

func PressTest

func PressTest(msgNumOneClient int, intervalSleepMS int, clientNum int)

func RegisterOnlineAccounts

func RegisterOnlineAccounts(number int)

func RegisterPressUser

func RegisterPressUser(id int)

func RegisterReliabilityUser

func RegisterReliabilityUser(id int, timeStamp string)

func RegisterWorkGroupAccounts

func RegisterWorkGroupAccounts(number int)

func RegisterWorkGroupPressAccounts

func RegisterWorkGroupPressAccounts(number int)

func ReliabilityInitAndLogin

func ReliabilityInitAndLogin(index int, uid, tk, ws, api string)

func ReliabilityOne

func ReliabilityOne(index int, beforeLoginSleep int, isSendMsg bool, intervalSleepMS int)

func ReliabilityTest

func ReliabilityTest(msgNumOneClient int, intervalSleepMS int, randSleepMaxSecond int, clientNum int)

func RunGetToken

func RunGetToken(strMyUid string) string

func SendTextMessageOnlyForPress

func SendTextMessageOnlyForPress(text, senderID, recvID, groupID, operationID string, ws *interaction.Ws) bool

func SetListenerAndLogin

func SetListenerAndLogin(uid, tk string)

func SetTestFriendID

func SetTestFriendID(friendUserID string)

func SetTestGroupID

func SetTestGroupID(groupID, memberID string)

func SetTestInviteInfo

func SetTestInviteInfo() *api.InvitationInfo

func TestClearWorkMomentsNotification

func TestClearWorkMomentsNotification()

func TestGetWorkMomentsNotification

func TestGetWorkMomentsNotification()

func TestGetWorkMomentsUnReadCount

func TestGetWorkMomentsUnReadCount()

func TestLog

func TestLog(v ...interface{})

func WorkGroupMsgDelayOne

func WorkGroupMsgDelayOne(index int, beforeLoginSleep int, isSendMsg bool, intervalSleepMS int, groupID string)

func WorkGroupMsgDelayTest

func WorkGroupMsgDelayTest(msgNumOneClient int, intervalSleepMS int, randSleepMaxSecond int, clientBegin int, clientEnd int, groupID string)

func WorkGroupPressOne

func WorkGroupPressOne(index int, beforeLoginSleep int, isSendMsg bool, intervalSleepMS int, groupID string)

func WorkGroupPressTest

func WorkGroupPressTest(msgNumOneClient int, intervalSleepMS int, clientNum int, groupID string)

func WorkGroupRegisterReliabilityUser

func WorkGroupRegisterReliabilityUser(id int)

func WorkGroupReliabilityOne

func WorkGroupReliabilityOne(index int, beforeLoginSleep int, isSendMsg bool, intervalSleepMS int, groupID string)

func WorkGroupReliabilityTest

func WorkGroupReliabilityTest(msgNumOneClient int, intervalSleepMS int, randSleepMaxSecond int, clientNum int, groupID string)

Types

type AddMessageReactionExtensionsCallBack

type AddMessageReactionExtensionsCallBack struct {
	OperationID string
}

func (AddMessageReactionExtensionsCallBack) OnError

func (g AddMessageReactionExtensionsCallBack) OnError(errCode int32, errMsg string)

func (AddMessageReactionExtensionsCallBack) OnSuccess

func (g AddMessageReactionExtensionsCallBack) OnSuccess(data string)

type BaseSuccessFailed

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

func (*BaseSuccessFailed) OnError

func (b *BaseSuccessFailed) OnError(errCode int32, errMsg string)

func (*BaseSuccessFailed) OnSuccess

func (b *BaseSuccessFailed) OnSuccess(data string)

type BaseSuccessFailedTest

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

func (*BaseSuccessFailedTest) OnError

func (b *BaseSuccessFailedTest) OnError(errCode int32, errMsg string)

func (*BaseSuccessFailedTest) OnSuccess

func (b *BaseSuccessFailedTest) OnSuccess(data string)

type BatchMsg

type BatchMsg struct {
}

func (*BatchMsg) OnRecvNewMessages

func (m *BatchMsg) OnRecvNewMessages(groupMsgReceiptList string)

type CoreNode

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

type DeleteConversationCallBack

type DeleteConversationCallBack struct {
}

func (DeleteConversationCallBack) OnError

func (d DeleteConversationCallBack) OnError(errCode int32, errMsg string)

func (DeleteConversationCallBack) OnSuccess

func (d DeleteConversationCallBack) OnSuccess(data string)

type DeleteMessageCallBack

type DeleteMessageCallBack struct {
	Msg string
}

func (DeleteMessageCallBack) GetMessage

func (d DeleteMessageCallBack) GetMessage() string

func (DeleteMessageCallBack) OnError

func (d DeleteMessageCallBack) OnError(errCode int32, errMsg string)

func (*DeleteMessageCallBack) OnSuccess

func (d *DeleteMessageCallBack) OnSuccess(data string)

type FindMessageListCallBack

type FindMessageListCallBack struct {
	OperationID string
}

func (FindMessageListCallBack) OnError

func (g FindMessageListCallBack) OnError(errCode int32, errMsg string)

func (FindMessageListCallBack) OnSuccess

func (g FindMessageListCallBack) OnSuccess(data string)

type GetHistoryCallBack

type GetHistoryCallBack struct {
	OperationID string
	Data        string
}

func (GetHistoryCallBack) OnError

func (g GetHistoryCallBack) OnError(errCode int32, errMsg string)

func (GetHistoryCallBack) OnSuccess

func (g GetHistoryCallBack) OnSuccess(data string)

type GetHistoryReverseCallBack

type GetHistoryReverseCallBack struct {
	OperationID string
}

func (GetHistoryReverseCallBack) OnError

func (g GetHistoryReverseCallBack) OnError(errCode int32, errMsg string)

func (GetHistoryReverseCallBack) OnSuccess

func (g GetHistoryReverseCallBack) OnSuccess(data string)

type GetMessageListReactionExtensionsCallBack

type GetMessageListReactionExtensionsCallBack struct {
	OperationID string
}

func (GetMessageListReactionExtensionsCallBack) OnError

func (g GetMessageListReactionExtensionsCallBack) OnError(errCode int32, errMsg string)

func (GetMessageListReactionExtensionsCallBack) OnSuccess

type GetTokenReq

type GetTokenReq struct {
	Secret   string `json:"secret"`
	Platform int    `json:"platform"`
	Uid      string `json:"uid"`
}

type MsgListenerCallBak

type MsgListenerCallBak struct {
}

func (*MsgListenerCallBak) OnNewRecvMessageRevoked

func (m *MsgListenerCallBak) OnNewRecvMessageRevoked(messageRevoked string)

func (MsgListenerCallBak) OnRecvC2CReadReceipt

func (m MsgListenerCallBak) OnRecvC2CReadReceipt(data string)

func (*MsgListenerCallBak) OnRecvGroupReadReceipt

func (m *MsgListenerCallBak) OnRecvGroupReadReceipt(groupMsgReceiptList string)

func (*MsgListenerCallBak) OnRecvMessageExtensionsAdded

func (m *MsgListenerCallBak) OnRecvMessageExtensionsAdded(msgID string, reactionExtensionList string)

func (*MsgListenerCallBak) OnRecvMessageExtensionsChanged

func (m *MsgListenerCallBak) OnRecvMessageExtensionsChanged(msgID string, reactionExtensionList string)

func (*MsgListenerCallBak) OnRecvMessageExtensionsDeleted

func (m *MsgListenerCallBak) OnRecvMessageExtensionsDeleted(msgID string, reactionExtensionKeyList string)

func (MsgListenerCallBak) OnRecvMessageRevoked

func (m MsgListenerCallBak) OnRecvMessageRevoked(msgId string)

func (*MsgListenerCallBak) OnRecvNewMessage

func (m *MsgListenerCallBak) OnRecvNewMessage(msg string)

type RegisterReq

type RegisterReq struct {
	Secret   string `json:"secret"`
	Platform int    `json:"platform"`
	Uid      string `json:"uid"`
	Name     string `json:"name"`
}

type ResToken

type ResToken struct {
	Data struct {
		ExpiredTime int64  `json:"expiredTime"`
		Token       string `json:"token"`
		Uid         string `json:"uid"`
	}
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
}

type SearchLocalMessagesCallBack

type SearchLocalMessagesCallBack struct {
	OperationID string
}

func (SearchLocalMessagesCallBack) OnError

func (g SearchLocalMessagesCallBack) OnError(errCode int32, errMsg string)

func (SearchLocalMessagesCallBack) OnSuccess

func (g SearchLocalMessagesCallBack) OnSuccess(data string)

type SendRecvTime

type SendRecvTime struct {
	SendTime             int64
	SendSeccCallbackTime int64
	RecvTime             int64
	SendIDRecvID         string
}

type SetAppBadgeCallBack

type SetAppBadgeCallBack struct {
	OperationID string
}

func (SetAppBadgeCallBack) OnError

func (g SetAppBadgeCallBack) OnError(errCode int32, errMsg string)

func (SetAppBadgeCallBack) OnSuccess

func (g SetAppBadgeCallBack) OnSuccess(data string)

type SetMessageReactionExtensionsCallBack

type SetMessageReactionExtensionsCallBack struct {
	OperationID string
}

func (SetMessageReactionExtensionsCallBack) OnError

func (g SetMessageReactionExtensionsCallBack) OnError(errCode int32, errMsg string)

func (SetMessageReactionExtensionsCallBack) OnSuccess

func (g SetMessageReactionExtensionsCallBack) OnSuccess(data string)

type TestClearMsg

type TestClearMsg struct {
	OperationID string
}

func (*TestClearMsg) OnError

func (t *TestClearMsg) OnError(errCode int32, errMsg string)

func (*TestClearMsg) OnSuccess

func (t *TestClearMsg) OnSuccess(data string)

type TestDeleteConversation

type TestDeleteConversation struct {
	OperationID string
}

func (TestDeleteConversation) OnError

func (t TestDeleteConversation) OnError(errCode int32, errMsg string)

func (TestDeleteConversation) OnSuccess

func (t TestDeleteConversation) OnSuccess(data string)

type TestGetAllConversationListCallBack

type TestGetAllConversationListCallBack struct {
	OperationID string
}

func (TestGetAllConversationListCallBack) OnError

func (t TestGetAllConversationListCallBack) OnError(errCode int32, errMsg string)

func (TestGetAllConversationListCallBack) OnSuccess

func (t TestGetAllConversationListCallBack) OnSuccess(data string)

type TestGetConversationListSplitCallBack

type TestGetConversationListSplitCallBack struct {
	OperationID string
}

func (TestGetConversationListSplitCallBack) OnError

func (t TestGetConversationListSplitCallBack) OnError(errCode int32, errMsg string)

func (TestGetConversationListSplitCallBack) OnSuccess

func (t TestGetConversationListSplitCallBack) OnSuccess(data string)

type TestGetConversationRecvMessageOpt

type TestGetConversationRecvMessageOpt struct {
	OperationID string
}

func (TestGetConversationRecvMessageOpt) OnError

func (t TestGetConversationRecvMessageOpt) OnError(errCode int32, errMsg string)

func (TestGetConversationRecvMessageOpt) OnSuccess

func (t TestGetConversationRecvMessageOpt) OnSuccess(data string)

type TestGetOneConversationCallBack

type TestGetOneConversationCallBack struct {
}

func (TestGetOneConversationCallBack) OnError

func (t TestGetOneConversationCallBack) OnError(errCode int32, errMsg string)

func (TestGetOneConversationCallBack) OnSuccess

func (t TestGetOneConversationCallBack) OnSuccess(data string)

type TestMarkGroupMessageAsRead

type TestMarkGroupMessageAsRead struct {
	OperationID string
}

func (TestMarkGroupMessageAsRead) OnError

func (t TestMarkGroupMessageAsRead) OnError(errCode int32, errMsg string)

func (TestMarkGroupMessageAsRead) OnSuccess

func (t TestMarkGroupMessageAsRead) OnSuccess(data string)

type TestModifyGroupMessageReaction

type TestModifyGroupMessageReaction struct {
	OperationID string
}

func (*TestModifyGroupMessageReaction) OnError

func (t *TestModifyGroupMessageReaction) OnError(errCode int32, errMsg string)

func (*TestModifyGroupMessageReaction) OnSuccess

func (t *TestModifyGroupMessageReaction) OnSuccess(data string)

type TestSearchLocalMessages

type TestSearchLocalMessages struct {
	OperationID string
}

func (TestSearchLocalMessages) OnError

func (t TestSearchLocalMessages) OnError(errCode int32, errMsg string)

func (TestSearchLocalMessages) OnSuccess

func (t TestSearchLocalMessages) OnSuccess(data string)

type TestSendImg

type TestSendImg struct {
}

func (TestSendImg) OnError

func (TestSendImg) OnError(code int, msg string)

func (TestSendImg) OnProgress

func (TestSendImg) OnProgress(progress int)

func (TestSendImg) OnSuccess

func (TestSendImg) OnSuccess(data string)

type TestSendMsgCallBack

type TestSendMsgCallBack struct {
	OperationID string
	// contains filtered or unexported fields
}

func (*TestSendMsgCallBack) OnError

func (t *TestSendMsgCallBack) OnError(errCode int32, errMsg string)

func (*TestSendMsgCallBack) OnProgress

func (t *TestSendMsgCallBack) OnProgress(progress int)

func (*TestSendMsgCallBack) OnSuccess

func (t *TestSendMsgCallBack) OnSuccess(data string)

type TestSendMsgCallBackPress

type TestSendMsgCallBackPress struct {
	OperationID string
	// contains filtered or unexported fields
}

func (*TestSendMsgCallBackPress) OnError

func (t *TestSendMsgCallBackPress) OnError(errCode int32, errMsg string)

func (*TestSendMsgCallBackPress) OnProgress

func (t *TestSendMsgCallBackPress) OnProgress(progress int)

func (*TestSendMsgCallBackPress) OnSuccess

func (t *TestSendMsgCallBackPress) OnSuccess(data string)

type TestSetConversationDraft

type TestSetConversationDraft struct {
}
func DoTestSetConversationDraft() {
	var test TestSetConversationDraft
	open_im_sdk.SetConversationDraft("single_c93bc8b171cce7b9d1befb389abfe52f", "hah", test)

}

func (TestSetConversationDraft) OnError

func (t TestSetConversationDraft) OnError(errCode int32, errMsg string)

func (TestSetConversationDraft) OnSuccess

func (t TestSetConversationDraft) OnSuccess(data string)

type TestSetConversationPinnedCallback

type TestSetConversationPinnedCallback struct {
	OperationID string
}

func (TestSetConversationPinnedCallback) OnError

func (t TestSetConversationPinnedCallback) OnError(errCode int32, errMsg string)

func (TestSetConversationPinnedCallback) OnSuccess

func (t TestSetConversationPinnedCallback) OnSuccess(data string)

type UpdateFcmTokenCallBack

type UpdateFcmTokenCallBack struct {
	OperationID string
}

func (UpdateFcmTokenCallBack) OnError

func (g UpdateFcmTokenCallBack) OnError(errCode int32, errMsg string)

func (UpdateFcmTokenCallBack) OnSuccess

func (g UpdateFcmTokenCallBack) OnSuccess(data string)

type WBase

type WBase struct {
}

func (WBase) OnError

func (WBase) OnError(errCode int32, errMsg string)

func (WBase) OnProgress

func (WBase) OnProgress(progress int)

func (WBase) OnSuccess

func (WBase) OnSuccess(data string)

type XBase

type XBase struct {
}

func (XBase) OnError

func (XBase) OnError(errCode int32, errMsg string)

func (XBase) OnProgress

func (XBase) OnProgress(progress int)

func (XBase) OnSuccess

func (XBase) OnSuccess(data string)

Jump to

Keyboard shortcuts

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