open_im_sdk

package
v0.0.0-...-1259710 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserRouterMap map[string]*login.LoginMgr
View Source
var UserSDKRwLock sync.RWMutex

Functions

func AcceptFriendApplication

func AcceptFriendApplication(callback open_im_sdk_callback.Base, operationID string, userIDHandleMsg string)

func AcceptGroupApplication

func AcceptGroupApplication(callback open_im_sdk_callback.Base, operationID string, groupID, fromUserID, handleMsg string)

func AddBlack

func AddBlack(callback open_im_sdk_callback.Base, operationID string, blackUserID string)

func AddFriend

func AddFriend(callback open_im_sdk_callback.Base, operationID string, userIDReqMsg string)

func ChangeGroupMemberMute

func ChangeGroupMemberMute(callback open_im_sdk_callback.Base, operationID string, groupID, userID string, mutedSeconds int)

func ChangeGroupMute

func ChangeGroupMute(callback open_im_sdk_callback.Base, operationID string, groupID string, isMute bool)

func CheckFriend

func CheckFriend(callback open_im_sdk_callback.Base, operationID string, userIDList string)

func CheckResourceLoad

func CheckResourceLoad(uSDK *login.LoginMgr) error

func CheckToken

func CheckToken(userID, token string, operationID string) error

func ClearC2CHistoryMessage

func ClearC2CHistoryMessage(callback open_im_sdk_callback.Base, operationID string, userID string)

func ClearC2CHistoryMessageFromLocalAndSvr

func ClearC2CHistoryMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, operationID string, userID string)

func ClearGroupHistoryMessage

func ClearGroupHistoryMessage(callback open_im_sdk_callback.Base, operationID string, groupID string)

func ClearGroupHistoryMessageFromLocalAndSvr

func ClearGroupHistoryMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, operationID string, groupID string)

func ClearWorkMomentsNotification

func ClearWorkMomentsNotification(callback open_im_sdk_callback.Base, operationID string)

func CreateAdvancedQuoteMessage

func CreateAdvancedQuoteMessage(operationID string, text string, message, messageEntityList string) string

func CreateAdvancedTextMessage

func CreateAdvancedTextMessage(operationID string, text, messageEntityList string) string

func CreateCardMessage

func CreateCardMessage(operationID string, cardInfo string) string

func CreateCustomMessage

func CreateCustomMessage(operationID string, data, extension string, description string) string

func CreateFaceMessage

func CreateFaceMessage(operationID string, index int, data string) string

func CreateFileMessage

func CreateFileMessage(operationID string, filePath string, fileName string) string

func CreateFileMessageByURL

func CreateFileMessageByURL(operationID string, fileBaseInfo string) string

func CreateFileMessageFromFullPath

func CreateFileMessageFromFullPath(operationID string, fileFullPath, fileName string) string

func CreateForwardMessage

func CreateForwardMessage(operationID string, m string) string

func CreateGroup

func CreateGroup(callback open_im_sdk_callback.Base, operationID string, groupBaseInfo string, memberList string)

func CreateImageMessage

func CreateImageMessage(operationID string, imagePath string) string

func CreateImageMessageByURL

func CreateImageMessageByURL(operationID string, sourcePicture, bigPicture, snapshotPicture string) string

func CreateImageMessageFromFullPath

func CreateImageMessageFromFullPath(operationID string, imageFullPath string) string

func CreateLocationMessage

func CreateLocationMessage(operationID string, description string, longitude, latitude float64) string

func CreateMergerMessage

func CreateMergerMessage(operationID string, messageList, title, summaryList string) string

func CreateQuoteMessage

func CreateQuoteMessage(operationID string, text string, message string) string

func CreateSoundMessage

func CreateSoundMessage(operationID string, soundPath string, duration int64) string

func CreateSoundMessageByURL

func CreateSoundMessageByURL(operationID string, soundBaseInfo string) string

func CreateSoundMessageFromFullPath

func CreateSoundMessageFromFullPath(operationID string, soundPath string, duration int64) string

func CreateTextAtMessage

func CreateTextAtMessage(operationID string, text, atUserList, atUsersInfo, message string) string

func CreateTextMessage

func CreateTextMessage(operationID string, text string) string

func CreateVideoMessage

func CreateVideoMessage(operationID string, videoPath string, videoType string, duration int64, snapshotPath string) string

func CreateVideoMessageByURL

func CreateVideoMessageByURL(operationID string, videoBaseInfo string) string

func CreateVideoMessageFromFullPath

func CreateVideoMessageFromFullPath(operationID string, videoFullPath string, videoType string, duration int64, snapshotFullPath string) string

func DeleteAllConversationFromLocal

func DeleteAllConversationFromLocal(callback open_im_sdk_callback.Base, operationID string)

func DeleteAllMsgFromLocal

func DeleteAllMsgFromLocal(callback open_im_sdk_callback.Base, operationID string)

func DeleteAllMsgFromLocalAndSvr

func DeleteAllMsgFromLocalAndSvr(callback open_im_sdk_callback.Base, operationID string)

func DeleteConversation

func DeleteConversation(callback open_im_sdk_callback.Base, operationID string, conversationID string)

func DeleteConversationFromLocalAndSvr

func DeleteConversationFromLocalAndSvr(callback open_im_sdk_callback.Base, operationID string, conversationID string)

func DeleteFriend

func DeleteFriend(callback open_im_sdk_callback.Base, operationID string, friendUserID string)

func DeleteMessageFromLocalAndSvr

func DeleteMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, operationID string, message string)

func DeleteMessageFromLocalStorage

func DeleteMessageFromLocalStorage(callback open_im_sdk_callback.Base, operationID string, message string)

func DismissGroup

func DismissGroup(callback open_im_sdk_callback.Base, operationID string, groupID string)

func FindMessageList

func FindMessageList(callback open_im_sdk_callback.Base, operationID string, findMessageOptions string)

func GetAdvancedHistoryMessageList

func GetAdvancedHistoryMessageList(callback open_im_sdk_callback.Base, operationID string, getMessageOptions string)

func GetAllConversationList

func GetAllConversationList(callback open_im_sdk_callback.Base, operationID string)

func GetAtAllTag

func GetAtAllTag() string

func GetBlackList

func GetBlackList(callback open_im_sdk_callback.Base, operationID string)

func GetConversationIDBySessionType

func GetConversationIDBySessionType(sourceID string, sessionType int) string

func GetConversationListSplit

func GetConversationListSplit(callback open_im_sdk_callback.Base, operationID string, offset, count int)

func GetConversationRecvMessageOpt

func GetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, operationID string, conversationIDList string)

deprecated

func GetDepartmentInfo

func GetDepartmentInfo(callback open_im_sdk_callback.Base, operationID string, departmentID string)

func GetDepartmentMember

func GetDepartmentMember(callback open_im_sdk_callback.Base, operationID string, departmentID string, offset, count int)

func GetDepartmentMemberAndSubDepartment

func GetDepartmentMemberAndSubDepartment(callback open_im_sdk_callback.Base, operationID string, departmentID string)

func GetDesignatedFriendsInfo

func GetDesignatedFriendsInfo(callback open_im_sdk_callback.Base, operationID string, userIDList string)

func GetFriendList

func GetFriendList(callback open_im_sdk_callback.Base, operationID string)

func GetGroupMemberList

func GetGroupMemberList(callback open_im_sdk_callback.Base, operationID string, groupID string, filter, offset, count int32)

func GetGroupMemberListByJoinTimeFilter

func GetGroupMemberListByJoinTimeFilter(callback open_im_sdk_callback.Base, operationID string, groupID string, offset, count int32, joinTimeBegin, joinTimeEnd int64, filterUserIDList string)

func GetGroupMemberOwnerAndAdmin

func GetGroupMemberOwnerAndAdmin(callback open_im_sdk_callback.Base, operationID string, groupID string)

func GetGroupMembersInfo

func GetGroupMembersInfo(callback open_im_sdk_callback.Base, operationID string, groupID string, userIDList string)

func GetGroupsInfo

func GetGroupsInfo(callback open_im_sdk_callback.Base, operationID string, groupIDList string)

func GetHistoryMessageList

func GetHistoryMessageList(callback open_im_sdk_callback.Base, operationID string, getMessageOptions string)

func GetHistoryMessageListReverse

func GetHistoryMessageListReverse(callback open_im_sdk_callback.Base, operationID string, getMessageOptions string)

func GetJoinedGroupList

func GetJoinedGroupList(callback open_im_sdk_callback.Base, operationID string)

func GetLoginStatus

func GetLoginStatus() int32

func GetLoginUser

func GetLoginUser() string

func GetMultipleConversation

func GetMultipleConversation(callback open_im_sdk_callback.Base, operationID string, conversationIDList string)

func GetOneConversation

func GetOneConversation(callback open_im_sdk_callback.Base, operationID string, sessionType int, sourceID string)

func GetParentDepartmentList

func GetParentDepartmentList(callback open_im_sdk_callback.Base, operationID string, departmentID string)

func GetRecvFriendApplicationList

func GetRecvFriendApplicationList(callback open_im_sdk_callback.Base, operationID string)

func GetRecvGroupApplicationList

func GetRecvGroupApplicationList(callback open_im_sdk_callback.Base, operationID string)

func GetSelfUserInfo

func GetSelfUserInfo(callback open_im_sdk_callback.Base, operationID string)

func GetSendFriendApplicationList

func GetSendFriendApplicationList(callback open_im_sdk_callback.Base, operationID string)

func GetSendGroupApplicationList

func GetSendGroupApplicationList(callback open_im_sdk_callback.Base, operationID string)

func GetSubDepartment

func GetSubDepartment(callback open_im_sdk_callback.Base, operationID string, departmentID string, offset, count int)

func GetTotalUnreadMsgCount

func GetTotalUnreadMsgCount(callback open_im_sdk_callback.Base, operationID string)

func GetUserInDepartment

func GetUserInDepartment(callback open_im_sdk_callback.Base, operationID string, userID string)

func GetUserWorker

func GetUserWorker(uid string) *login.LoginMgr

func GetUsersInfo

func GetUsersInfo(callback open_im_sdk_callback.Base, operationID string, userIDList string)

/////////////////////user/////////////////////

func GetWorkMomentsNotification

func GetWorkMomentsNotification(callback open_im_sdk_callback.Base, operationID string, offset, count int)

func GetWorkMomentsUnReadCount

func GetWorkMomentsUnReadCount(callback open_im_sdk_callback.Base, operationID string)

workMomentsInterface

func InitOnce

func InitOnce(config *sdk_struct.IMConfig) bool

func InitSDK

func InitSDK(listener open_im_sdk_callback.OnConnListener, operationID string, config string) bool

func InsertGroupMessageToLocalStorage

func InsertGroupMessageToLocalStorage(callback open_im_sdk_callback.Base, operationID string, message, groupID, sendID string)

func InsertSingleMessageToLocalStorage

func InsertSingleMessageToLocalStorage(callback open_im_sdk_callback.Base, operationID string, message, recvID, sendID string)

func InviteUserToGroup

func InviteUserToGroup(callback open_im_sdk_callback.Base, operationID string, groupID, reason string, userIDList string)

func JoinGroup

func JoinGroup(callback open_im_sdk_callback.Base, operationID string, groupID, reqMsg string, joinSource int32)

func KickGroupMember

func KickGroupMember(callback open_im_sdk_callback.Base, operationID string, groupID string, reason string, userIDList string)

func Login

func Login(callback open_im_sdk_callback.Base, operationID string, userID, token string)

func Logout

func Logout(callback open_im_sdk_callback.Base, operationID string)

func MarkC2CMessageAsRead

func MarkC2CMessageAsRead(callback open_im_sdk_callback.Base, operationID string, userID string, msgIDList string)

func MarkGroupMessageAsRead

func MarkGroupMessageAsRead(callback open_im_sdk_callback.Base, operationID string, groupID, msgIDList string)

func MarkGroupMessageHasRead

func MarkGroupMessageHasRead(callback open_im_sdk_callback.Base, operationID string, groupID string)

deprecated

func MarkMessageAsReadByConID

func MarkMessageAsReadByConID(callback open_im_sdk_callback.Base, operationID string, conversationID string, msgIDList string)

func NewRevokeMessage

func NewRevokeMessage(callback open_im_sdk_callback.Base, operationID string, message string)

func PinConversation

func PinConversation(callback open_im_sdk_callback.Base, operationID string, conversationID string, isPinned bool)

func QuitGroup

func QuitGroup(callback open_im_sdk_callback.Base, operationID string, groupID string)

func RefuseFriendApplication

func RefuseFriendApplication(callback open_im_sdk_callback.Base, operationID string, userIDHandleMsg string)

func RefuseGroupApplication

func RefuseGroupApplication(callback open_im_sdk_callback.Base, operationID string, groupID, fromUserID, handleMsg string)

func RemoveBlack

func RemoveBlack(callback open_im_sdk_callback.Base, operationID string, removeUserID string)

func ResetConversationGroupAtType

func ResetConversationGroupAtType(callback open_im_sdk_callback.Base, operationID string, conversationID string)

func RevokeMessage

func RevokeMessage(callback open_im_sdk_callback.Base, operationID string, message string)

deprecated

func SdkVersion

func SdkVersion() string

func SearchFriends

func SearchFriends(callback open_im_sdk_callback.Base, operationID string, searchParam string)

func SearchGroupMembers

func SearchGroupMembers(callback open_im_sdk_callback.Base, operationID string, searchParam string)

SearchGroupMembers

func SearchGroups

func SearchGroups(callback open_im_sdk_callback.Base, operationID string, searchParam string)

func SearchLocalMessages

func SearchLocalMessages(callback open_im_sdk_callback.Base, operationID string, searchParam string)

func SearchOrganization

func SearchOrganization(callback open_im_sdk_callback.Base, operationID string, input string, offset, count int)

func SendMessage

func SendMessage(callback open_im_sdk_callback.SendMsgCallBack, operationID, message, recvID, groupID, offlinePushInfo string)

func SendMessageNotOss

func SendMessageNotOss(callback open_im_sdk_callback.SendMsgCallBack, operationID string, message, recvID, groupID string, offlinePushInfo string)

func SendMsgReceipt

func SendMsgReceipt(msgID, senderID, recvID, groupID, operationID, nickname, faceUrl string) bool

func SendTextMessageOnly

func SendTextMessageOnly(text, senderID, recvID, groupID, operationID, nickname, faceUrl string) bool

func SetAdvancedMsgListener

func SetAdvancedMsgListener(listener open_im_sdk_callback.OnAdvancedMsgListener)

func SetAppBadge

func SetAppBadge(callback open_im_sdk_callback.Base, appUnreadCount int32, operationID string)

func SetBatchMsgListener

func SetBatchMsgListener(listener open_im_sdk_callback.OnBatchMsgListener)

func SetConversationDraft

func SetConversationDraft(callback open_im_sdk_callback.Base, operationID string, conversationID, draftText string)

func SetConversationListener

func SetConversationListener(listener open_im_sdk_callback.OnConversationListener)

func SetConversationRecvMessageOpt

func SetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, operationID string, conversationIDList string, opt int)

func SetFriendListener

func SetFriendListener(listener open_im_sdk_callback.OnFriendshipListener)

func SetFriendRemark

func SetFriendRemark(callback open_im_sdk_callback.Base, operationID string, userIDRemark string)

func SetGlobalRecvMessageOpt

func SetGlobalRecvMessageOpt(callback open_im_sdk_callback.Base, operationID string, opt int)

func SetGroupApplyMemberFriend

func SetGroupApplyMemberFriend(callback open_im_sdk_callback.Base, operationID string, groupID string, rule int32)

func SetGroupInfo

func SetGroupInfo(callback open_im_sdk_callback.Base, operationID string, groupID string, groupInfo string)

func SetGroupListener

func SetGroupListener(callback open_im_sdk_callback.OnGroupListener)

////////////////////////group//////////////////////////////////////////

func SetGroupLookMemberInfo

func SetGroupLookMemberInfo(callback open_im_sdk_callback.Base, operationID string, groupID string, rule int32)

func SetGroupMemberNickname

func SetGroupMemberNickname(callback open_im_sdk_callback.Base, operationID string, groupID, userID, groupMemberNickname string)

func SetGroupMemberRoleLevel

func SetGroupMemberRoleLevel(callback open_im_sdk_callback.Base, operationID string, groupID, userID string, roleLevel int)

func SetGroupVerification

func SetGroupVerification(callback open_im_sdk_callback.Base, operationID string, groupID string, verification int32)

func SetHeartbeatInterval

func SetHeartbeatInterval(heartbeatInterval int)

func SetOneConversationPrivateChat

func SetOneConversationPrivateChat(callback open_im_sdk_callback.Base, operationID, conversationID string, isPrivate bool)

func SetOneConversationRecvMessageOpt

func SetOneConversationRecvMessageOpt(callback open_im_sdk_callback.Base, operationID, conversationID string, opt int)

func SetOrganizationListener

func SetOrganizationListener(callback open_im_sdk_callback.OnOrganizationListener)

func SetSelfInfo

func SetSelfInfo(callback open_im_sdk_callback.Base, operationID string, userInfo string)

func SetSignalingListener

func SetSignalingListener(callback open_im_sdk_callback.OnSignalingListener)

////////////////////////signaling//////////////////////////////////////////

func SetSignalingListenerForService

func SetSignalingListenerForService(callback open_im_sdk_callback.OnSignalingListener)

func SetUserListener

func SetUserListener(listener open_im_sdk_callback.OnUserListener)

func SetWorkMomentsListener

func SetWorkMomentsListener(listener open_im_sdk_callback.OnWorkMomentsListener)

func SignalingAccept

func SignalingAccept(callback open_im_sdk_callback.Base, operationID string, signalAcceptReq string)

func SignalingCancel

func SignalingCancel(callback open_im_sdk_callback.Base, operationID string, signalCancelReq string)

func SignalingGetRoomByGroupID

func SignalingGetRoomByGroupID(callback open_im_sdk_callback.Base, operationID string, groupID string)

func SignalingHungUp

func SignalingHungUp(callback open_im_sdk_callback.Base, operationID string, signalHungUpReq string)

func SignalingInvite

func SignalingInvite(callback open_im_sdk_callback.Base, operationID string, signalInviteReq string)

func SignalingInviteInGroup

func SignalingInviteInGroup(callback open_im_sdk_callback.Base, operationID string, signalInviteInGroupReq string)

func SignalingReject

func SignalingReject(callback open_im_sdk_callback.Base, operationID string, signalRejectReq string)

func TransferGroupOwner

func TransferGroupOwner(callback open_im_sdk_callback.Base, operationID string, groupID, newOwnerUserID string)

func TypingStatusUpdate

func TypingStatusUpdate(callback open_im_sdk_callback.Base, operationID string, recvID, msgTip string)

func UpdateFcmToken

func UpdateFcmToken(callback open_im_sdk_callback.Base, fmcToken, operationID string)

func UploadFile

func UploadFile(callback open_im_sdk_callback.SendMsgCallBack, operationID string, filePath string)

func UploadImage

func UploadImage(callback open_im_sdk_callback.Base, operationID string, filePath string, token, obj string) string

func WakeUp

func WakeUp(callback open_im_sdk_callback.Base, operationID string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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