Documentation ¶
Index ¶
- Constants
- Variables
- type Conversation
- func (c *Conversation) ClearC2CHistoryMessage(callback open_im_sdk_callback.Base, userID string, operationID string)
- func (c *Conversation) ClearC2CHistoryMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, userID string, operationID string)
- func (c *Conversation) ClearGroupHistoryMessage(callback open_im_sdk_callback.Base, groupID string, operationID string)
- func (c *Conversation) ClearGroupHistoryMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, groupID string, operationID string)
- func (c *Conversation) CreateAdvancedQuoteMessage(text string, message, messageEntityList, operationID string) string
- func (c *Conversation) CreateAdvancedTextMessage(text, messageEntityList, operationID string) string
- func (c *Conversation) CreateCardMessage(cardInfo, operationID string) string
- func (c *Conversation) CreateCustomMessage(data, extension string, description, operationID string) string
- func (c *Conversation) CreateFaceMessage(index int, data, operationID string) string
- func (c *Conversation) CreateFileMessage(filePath string, fileName, operationID string) string
- func (c *Conversation) CreateFileMessageByURL(fileBaseInfo, operationID string) string
- func (c *Conversation) CreateFileMessageFromFullPath(fileFullPath string, fileName, operationID string) string
- func (c *Conversation) CreateForwardMessage(m, operationID string) string
- func (c *Conversation) CreateImageMessage(imagePath, operationID string) string
- func (c *Conversation) CreateImageMessageByURL(sourcePicture, bigPicture, snapshotPicture, operationID string) string
- func (c *Conversation) CreateImageMessageFromFullPath(imageFullPath, operationID string) string
- func (c *Conversation) CreateLocationMessage(description string, longitude, latitude float64, operationID string) string
- func (c *Conversation) CreateMergerMessage(messageList, title, summaryList, operationID string) string
- func (c *Conversation) CreateQuoteMessage(text string, message, operationID string) string
- func (c *Conversation) CreateSoundMessage(soundPath string, duration int64, operationID string) string
- func (c *Conversation) CreateSoundMessageByURL(soundBaseInfo, operationID string) string
- func (c *Conversation) CreateSoundMessageFromFullPath(soundPath string, duration int64, operationID string) string
- func (c *Conversation) CreateTextAtMessage(text, atUserList, atUsersInfo, message, operationID string) string
- func (c *Conversation) CreateTextMessage(text, operationID string) string
- func (c *Conversation) CreateVideoMessage(videoPath string, videoType string, duration int64, ...) string
- func (c *Conversation) CreateVideoMessageByURL(videoBaseInfo, operationID string) string
- func (c *Conversation) CreateVideoMessageFromFullPath(videoFullPath string, videoType string, duration int64, ...) string
- func (c *Conversation) DeleteAllConversationFromLocal(callback open_im_sdk_callback.Base, operationID string)
- func (c *Conversation) DeleteAllMsgFromLocal(callback open_im_sdk_callback.Base, operationID string)
- func (c *Conversation) DeleteAllMsgFromLocalAndSvr(callback open_im_sdk_callback.Base, operationID string)
- func (c *Conversation) DeleteConversation(callback open_im_sdk_callback.Base, conversationID string, operationID string)
- func (c *Conversation) DeleteConversationFromLocalAndSvr(callback open_im_sdk_callback.Base, conversationID string, operationID string)
- func (c *Conversation) DeleteMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, message string, operationID string)
- func (c *Conversation) DeleteMessageFromLocalStorage(callback open_im_sdk_callback.Base, message string, operationID string)
- func (c *Conversation) DoGroupMsgReadState(groupMsgReadList []*sdk_struct.MsgStruct)
- func (c *Conversation) DoNotification(msg *server_api_params.MsgData)
- func (c *Conversation) FindMessageList(callback open_im_sdk_callback.Base, findMessageOptions, operationID string)
- func (c *Conversation) GetAdvancedHistoryMessageList(callback open_im_sdk_callback.Base, getMessageOptions, operationID string)
- func (c *Conversation) GetAllConversationList(callback open_im_sdk_callback.Base, operationID string)
- func (c *Conversation) GetCh() chan common.Cmd2Value
- func (c *Conversation) GetConversationListSplit(callback open_im_sdk_callback.Base, offset, count int, operationID string)
- func (c *Conversation) GetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, conversationIDList, operationID string)
- func (c *Conversation) GetConversationsByUserID(callback open_im_sdk_callback.Base, operationID string, UserID string)
- func (c *Conversation) GetHistoryMessageList(callback open_im_sdk_callback.Base, getMessageOptions, operationID string)
- func (c *Conversation) GetHistoryMessageListReverse(callback open_im_sdk_callback.Base, getMessageOptions, operationID string)
- func (c *Conversation) GetMultipleConversation(callback open_im_sdk_callback.Base, conversationIDList string, ...)
- func (c *Conversation) GetOneConversation(callback open_im_sdk_callback.Base, sessionType int32, ...)
- func (c *Conversation) GetTotalUnreadMsgCount(callback open_im_sdk_callback.Base, operationID string)
- func (c *Conversation) InsertGroupMessageToLocalStorage(callback open_im_sdk_callback.Base, ...)
- func (c *Conversation) InsertSingleMessageToLocalStorage(callback open_im_sdk_callback.Base, ...)
- func (c *Conversation) InternalSendMessage(callback open_im_sdk_callback.Base, s *sdk_struct.MsgStruct, ...) (*server_api_params.UserSendMsgResp, error)
- func (c *Conversation) MarkAllConversationHasRead(callback open_im_sdk_callback.Base, operationID string)
- func (c *Conversation) MarkC2CMessageAsRead(callback open_im_sdk_callback.Base, userID string, ...)
- func (c *Conversation) MarkGroupMessageAsRead(callback open_im_sdk_callback.Base, groupID string, ...)
- func (c *Conversation) MarkGroupMessageHasRead(callback open_im_sdk_callback.Base, groupID string, operationID string)
- func (c *Conversation) MarkMessageAsReadByConID(callback open_im_sdk_callback.Base, ...)
- func (c *Conversation) MsgListener() open_im_sdk_callback.OnAdvancedMsgListener
- func (c *Conversation) NewRevokeMessage(callback open_im_sdk_callback.Base, message string, operationID string)
- func (c *Conversation) PinConversation(callback open_im_sdk_callback.Base, conversationID string, isPinned bool, ...)
- func (c *Conversation) ResetConversationGroupAtType(callback open_im_sdk_callback.Base, conversationID, operationID string)
- func (c *Conversation) RevokeMessage(callback open_im_sdk_callback.Base, message string, operationID string)
- func (c *Conversation) SearchLocalMessages(callback open_im_sdk_callback.Base, searchParam, operationID string)
- func (c *Conversation) SendMessage(callback open_im_sdk_callback.SendMsgCallBack, message, recvID, groupID string, ...)
- func (c *Conversation) SendMessageNotOss(callback open_im_sdk_callback.SendMsgCallBack, message, recvID, groupID string, ...)
- func (c *Conversation) SetBatchMsgListener(batchMsgListener open_im_sdk_callback.OnBatchMsgListener)
- func (c *Conversation) SetConversationDraft(callback open_im_sdk_callback.Base, conversationID, draftText string, ...)
- func (c *Conversation) SetConversationListener(listener open_im_sdk_callback.OnConversationListener)
- func (c *Conversation) SetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, conversationIDList string, opt int, ...)
- func (c *Conversation) SetConversationStatus(callback open_im_sdk_callback.Base, operationID string, userID string, ...)
- func (c *Conversation) SetGlobalRecvMessageOpt(callback open_im_sdk_callback.Base, opt int, operationID string)
- func (c *Conversation) SetMsgListener(msgListener open_im_sdk_callback.OnAdvancedMsgListener)
- func (c *Conversation) SetOneConversationPrivateChat(callback open_im_sdk_callback.Base, conversationID string, isPrivate bool, ...)
- func (c *Conversation) SetOneConversationRecvMessageOpt(callback open_im_sdk_callback.Base, conversationID string, opt int, ...)
- func (c *Conversation) SetSignaling(signaling *signaling.LiveSignaling)
- func (c *Conversation) SyncConversationUnreadCount(operationID string)
- func (c *Conversation) SyncConversations(operationID string, timeout time.Duration)
- func (c *Conversation) SyncOneConversation(conversationID, operationID string)
- func (c *Conversation) TypingStatusUpdate(callback open_im_sdk_callback.Base, recvID, msgTip, operationID string)
- func (c *Conversation) Work(c2v common.Cmd2Value)
Constants ¶
View Source
const TimeOffset = 5
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Conversation ¶
type Conversation struct { *ws.Ws ConversationListener open_im_sdk_callback.OnConversationListener DataDir string common2.ObjectStorage // contains filtered or unexported fields }
func NewConversation ¶
func NewConversation(ws *ws.Ws, db *db.DataBase, p *ws.PostApi, ch chan common.Cmd2Value, loginUserID string, platformID int32, dataDir, encryptionKey string, friend *friend.Friend, group *group.Group, user *user.User, objectStorage common2.ObjectStorage, conversationListener open_im_sdk_callback.OnConversationListener, msgListener open_im_sdk_callback.OnAdvancedMsgListener, organization *organization.Organization, signaling *signaling.LiveSignaling, workMoments *workMoments.WorkMoments, cache *cache.Cache, full *full.Full, id2MinSeq map[string]uint32) *Conversation
func (*Conversation) ClearC2CHistoryMessage ¶
func (c *Conversation) ClearC2CHistoryMessage(callback open_im_sdk_callback.Base, userID string, operationID string)
func (*Conversation) ClearC2CHistoryMessageFromLocalAndSvr ¶
func (c *Conversation) ClearC2CHistoryMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, userID string, operationID string)
func (*Conversation) ClearGroupHistoryMessage ¶
func (c *Conversation) ClearGroupHistoryMessage(callback open_im_sdk_callback.Base, groupID string, operationID string)
func (*Conversation) ClearGroupHistoryMessageFromLocalAndSvr ¶
func (c *Conversation) ClearGroupHistoryMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, groupID string, operationID string)
fixme
func (*Conversation) CreateAdvancedQuoteMessage ¶
func (c *Conversation) CreateAdvancedQuoteMessage(text string, message, messageEntityList, operationID string) string
func (*Conversation) CreateAdvancedTextMessage ¶
func (c *Conversation) CreateAdvancedTextMessage(text, messageEntityList, operationID string) string
func (*Conversation) CreateCardMessage ¶
func (c *Conversation) CreateCardMessage(cardInfo, operationID string) string
func (*Conversation) CreateCustomMessage ¶
func (c *Conversation) CreateCustomMessage(data, extension string, description, operationID string) string
func (*Conversation) CreateFaceMessage ¶
func (c *Conversation) CreateFaceMessage(index int, data, operationID string) string
func (*Conversation) CreateFileMessage ¶
func (c *Conversation) CreateFileMessage(filePath string, fileName, operationID string) string
func (*Conversation) CreateFileMessageByURL ¶
func (c *Conversation) CreateFileMessageByURL(fileBaseInfo, operationID string) string
func (*Conversation) CreateFileMessageFromFullPath ¶
func (c *Conversation) CreateFileMessageFromFullPath(fileFullPath string, fileName, operationID string) string
func (*Conversation) CreateForwardMessage ¶
func (c *Conversation) CreateForwardMessage(m, operationID string) string
func (*Conversation) CreateImageMessage ¶
func (c *Conversation) CreateImageMessage(imagePath, operationID string) string
func (*Conversation) CreateImageMessageByURL ¶
func (c *Conversation) CreateImageMessageByURL(sourcePicture, bigPicture, snapshotPicture, operationID string) string
func (*Conversation) CreateImageMessageFromFullPath ¶
func (c *Conversation) CreateImageMessageFromFullPath(imageFullPath, operationID string) string
func (*Conversation) CreateLocationMessage ¶
func (c *Conversation) CreateLocationMessage(description string, longitude, latitude float64, operationID string) string
func (*Conversation) CreateMergerMessage ¶
func (c *Conversation) CreateMergerMessage(messageList, title, summaryList, operationID string) string
func (*Conversation) CreateQuoteMessage ¶
func (c *Conversation) CreateQuoteMessage(text string, message, operationID string) string
func (*Conversation) CreateSoundMessage ¶
func (c *Conversation) CreateSoundMessage(soundPath string, duration int64, operationID string) string
func (*Conversation) CreateSoundMessageByURL ¶
func (c *Conversation) CreateSoundMessageByURL(soundBaseInfo, operationID string) string
func (*Conversation) CreateSoundMessageFromFullPath ¶
func (c *Conversation) CreateSoundMessageFromFullPath(soundPath string, duration int64, operationID string) string
func (*Conversation) CreateTextAtMessage ¶
func (c *Conversation) CreateTextAtMessage(text, atUserList, atUsersInfo, message, operationID string) string
func (*Conversation) CreateTextMessage ¶
func (c *Conversation) CreateTextMessage(text, operationID string) string
func (*Conversation) CreateVideoMessage ¶
func (*Conversation) CreateVideoMessageByURL ¶
func (c *Conversation) CreateVideoMessageByURL(videoBaseInfo, operationID string) string
func (*Conversation) CreateVideoMessageFromFullPath ¶
func (*Conversation) DeleteAllConversationFromLocal ¶
func (c *Conversation) DeleteAllConversationFromLocal(callback open_im_sdk_callback.Base, operationID string)
func (*Conversation) DeleteAllMsgFromLocal ¶
func (c *Conversation) DeleteAllMsgFromLocal(callback open_im_sdk_callback.Base, operationID string)
func (*Conversation) DeleteAllMsgFromLocalAndSvr ¶
func (c *Conversation) DeleteAllMsgFromLocalAndSvr(callback open_im_sdk_callback.Base, operationID string)
func (*Conversation) DeleteConversation ¶
func (c *Conversation) DeleteConversation(callback open_im_sdk_callback.Base, conversationID string, operationID string)
func (*Conversation) DeleteConversationFromLocalAndSvr ¶
func (c *Conversation) DeleteConversationFromLocalAndSvr(callback open_im_sdk_callback.Base, conversationID string, operationID string)
func (*Conversation) DeleteMessageFromLocalAndSvr ¶
func (c *Conversation) DeleteMessageFromLocalAndSvr(callback open_im_sdk_callback.Base, message string, operationID string)
func (*Conversation) DeleteMessageFromLocalStorage ¶
func (c *Conversation) DeleteMessageFromLocalStorage(callback open_im_sdk_callback.Base, message string, operationID string)
func (*Conversation) DoGroupMsgReadState ¶
func (c *Conversation) DoGroupMsgReadState(groupMsgReadList []*sdk_struct.MsgStruct)
func (*Conversation) DoNotification ¶
func (c *Conversation) DoNotification(msg *server_api_params.MsgData)
func (*Conversation) FindMessageList ¶
func (c *Conversation) FindMessageList(callback open_im_sdk_callback.Base, findMessageOptions, operationID string)
func (*Conversation) GetAdvancedHistoryMessageList ¶
func (c *Conversation) GetAdvancedHistoryMessageList(callback open_im_sdk_callback.Base, getMessageOptions, operationID string)
func (*Conversation) GetAllConversationList ¶
func (c *Conversation) GetAllConversationList(callback open_im_sdk_callback.Base, operationID string)
func (*Conversation) GetCh ¶
func (c *Conversation) GetCh() chan common.Cmd2Value
func (*Conversation) GetConversationListSplit ¶
func (c *Conversation) GetConversationListSplit(callback open_im_sdk_callback.Base, offset, count int, operationID string)
func (*Conversation) GetConversationRecvMessageOpt ¶
func (c *Conversation) GetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, conversationIDList, operationID string)
deprecated
func (*Conversation) GetConversationsByUserID ¶
func (c *Conversation) GetConversationsByUserID(callback open_im_sdk_callback.Base, operationID string, UserID string)
func (*Conversation) GetHistoryMessageList ¶
func (c *Conversation) GetHistoryMessageList(callback open_im_sdk_callback.Base, getMessageOptions, operationID string)
func (*Conversation) GetHistoryMessageListReverse ¶
func (c *Conversation) GetHistoryMessageListReverse(callback open_im_sdk_callback.Base, getMessageOptions, operationID string)
func (*Conversation) GetMultipleConversation ¶
func (c *Conversation) GetMultipleConversation(callback open_im_sdk_callback.Base, conversationIDList string, operationID string)
func (*Conversation) GetOneConversation ¶
func (c *Conversation) GetOneConversation(callback open_im_sdk_callback.Base, sessionType int32, sourceID, operationID string)
func (*Conversation) GetTotalUnreadMsgCount ¶
func (c *Conversation) GetTotalUnreadMsgCount(callback open_im_sdk_callback.Base, operationID string)
func (*Conversation) InsertGroupMessageToLocalStorage ¶
func (c *Conversation) InsertGroupMessageToLocalStorage(callback open_im_sdk_callback.Base, message, groupID, sendID, operationID string)
func (*Conversation) InsertSingleMessageToLocalStorage ¶
func (c *Conversation) InsertSingleMessageToLocalStorage(callback open_im_sdk_callback.Base, message, recvID, sendID, operationID string)
func (*Conversation) InternalSendMessage ¶
func (c *Conversation) InternalSendMessage(callback open_im_sdk_callback.Base, s *sdk_struct.MsgStruct, recvID, groupID, operationID string, p *server_api_params.OfflinePushInfo, onlineUserOnly bool, options map[string]bool) (*server_api_params.UserSendMsgResp, error)
func (*Conversation) MarkAllConversationHasRead ¶
func (c *Conversation) MarkAllConversationHasRead(callback open_im_sdk_callback.Base, operationID string)
fixme
func (*Conversation) MarkC2CMessageAsRead ¶
func (c *Conversation) MarkC2CMessageAsRead(callback open_im_sdk_callback.Base, userID string, msgIDList, operationID string)
func (*Conversation) MarkGroupMessageAsRead ¶
func (c *Conversation) MarkGroupMessageAsRead(callback open_im_sdk_callback.Base, groupID string, msgIDList, operationID string)
func (*Conversation) MarkGroupMessageHasRead ¶
func (c *Conversation) MarkGroupMessageHasRead(callback open_im_sdk_callback.Base, groupID string, operationID string)
deprecated
func (*Conversation) MarkMessageAsReadByConID ¶
func (c *Conversation) MarkMessageAsReadByConID(callback open_im_sdk_callback.Base, conversationID, msgIDList, operationID string)
func (*Conversation) MsgListener ¶
func (c *Conversation) MsgListener() open_im_sdk_callback.OnAdvancedMsgListener
func (*Conversation) NewRevokeMessage ¶
func (c *Conversation) NewRevokeMessage(callback open_im_sdk_callback.Base, message string, operationID string)
func (*Conversation) PinConversation ¶
func (c *Conversation) PinConversation(callback open_im_sdk_callback.Base, conversationID string, isPinned bool, operationID string)
func (*Conversation) ResetConversationGroupAtType ¶
func (c *Conversation) ResetConversationGroupAtType(callback open_im_sdk_callback.Base, conversationID, operationID string)
func (*Conversation) RevokeMessage ¶
func (c *Conversation) RevokeMessage(callback open_im_sdk_callback.Base, message string, operationID string)
func (*Conversation) SearchLocalMessages ¶
func (c *Conversation) SearchLocalMessages(callback open_im_sdk_callback.Base, searchParam, operationID string)
func (*Conversation) SendMessage ¶
func (c *Conversation) SendMessage(callback open_im_sdk_callback.SendMsgCallBack, message, recvID, groupID string, offlinePushInfo string, operationID string)
func (*Conversation) SendMessageNotOss ¶
func (c *Conversation) SendMessageNotOss(callback open_im_sdk_callback.SendMsgCallBack, message, recvID, groupID string, offlinePushInfo string, operationID string)
func (*Conversation) SetBatchMsgListener ¶
func (c *Conversation) SetBatchMsgListener(batchMsgListener open_im_sdk_callback.OnBatchMsgListener)
func (*Conversation) SetConversationDraft ¶
func (c *Conversation) SetConversationDraft(callback open_im_sdk_callback.Base, conversationID, draftText string, operationID string)
func (*Conversation) SetConversationListener ¶
func (c *Conversation) SetConversationListener(listener open_im_sdk_callback.OnConversationListener)
func (*Conversation) SetConversationRecvMessageOpt ¶
func (c *Conversation) SetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, conversationIDList string, opt int, operationID string)
func (*Conversation) SetConversationStatus ¶
func (c *Conversation) SetConversationStatus(callback open_im_sdk_callback.Base, operationID string, userID string, status int)
func (*Conversation) SetGlobalRecvMessageOpt ¶
func (c *Conversation) SetGlobalRecvMessageOpt(callback open_im_sdk_callback.Base, opt int, operationID string)
func (*Conversation) SetMsgListener ¶
func (c *Conversation) SetMsgListener(msgListener open_im_sdk_callback.OnAdvancedMsgListener)
func (*Conversation) SetOneConversationPrivateChat ¶
func (c *Conversation) SetOneConversationPrivateChat(callback open_im_sdk_callback.Base, conversationID string, isPrivate bool, operationID string)
func (*Conversation) SetOneConversationRecvMessageOpt ¶
func (c *Conversation) SetOneConversationRecvMessageOpt(callback open_im_sdk_callback.Base, conversationID string, opt int, operationID string)
func (*Conversation) SetSignaling ¶
func (c *Conversation) SetSignaling(signaling *signaling.LiveSignaling)
func (*Conversation) SyncConversationUnreadCount ¶
func (c *Conversation) SyncConversationUnreadCount(operationID string)
func (*Conversation) SyncConversations ¶
func (c *Conversation) SyncConversations(operationID string, timeout time.Duration)
func (*Conversation) SyncOneConversation ¶
func (c *Conversation) SyncOneConversation(conversationID, operationID string)
func (*Conversation) TypingStatusUpdate ¶
func (c *Conversation) TypingStatusUpdate(callback open_im_sdk_callback.Base, recvID, msgTip, operationID string)
func (*Conversation) Work ¶
func (c *Conversation) Work(c2v common.Cmd2Value)
Click to show internal directories.
Click to hide internal directories.