Documentation ¶
Index ¶
- Variables
- func CheckMessageDelay(singleMessageCount map[string]int, groupMessageCount map[string]int)
- func GetRelativeServerTime() int64
- func InitSDKAndLogin(userID, token string) error
- func SetListener(userForSDK *login.LoginMgr, userID string)
- func SetServerTimeOffset(offset int64)
- type MsgListenerCallBak
- func (m *MsgListenerCallBak) OnMsgDeleted(s string)
- func (m *MsgListenerCallBak) OnNewRecvMessageRevoked(messageRevoked string)
- func (m *MsgListenerCallBak) OnRecvC2CReadReceipt(msgReceiptList string)
- func (m *MsgListenerCallBak) OnRecvGroupReadReceipt(groupMsgReceiptList string)
- func (m *MsgListenerCallBak) OnRecvMessageExtensionsAdded(msgID string, reactionExtensionList string)
- func (m *MsgListenerCallBak) OnRecvMessageExtensionsChanged(msgID string, reactionExtensionList string)
- func (m *MsgListenerCallBak) OnRecvMessageExtensionsDeleted(msgID string, reactionExtensionKeyList string)
- func (m *MsgListenerCallBak) OnRecvNewMessage(message string)
- func (m *MsgListenerCallBak) OnRecvOfflineNewMessage(message string)
- func (m *MsgListenerCallBak) OnRecvOnlineOnlyMessage(message string)
- type SingleMessage
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TESTIP = "125.124.195.201" APIADDR = fmt.Sprintf("http://%v:10002", TESTIP) WSADDR = fmt.Sprintf("ws://%v:10001", TESTIP) SECRET = "openIM123" PLATFORMID = constant.WindowsPlatformID LogLevel = uint32(5) )
View Source
var (
UserMessageMap = make(map[string]*MsgListenerCallBak)
)
Functions ¶
func CheckMessageDelay ¶
func GetRelativeServerTime ¶
func GetRelativeServerTime() int64
func InitSDKAndLogin ¶
func SetListener ¶
func SetServerTimeOffset ¶
func SetServerTimeOffset(offset int64)
Types ¶
type MsgListenerCallBak ¶
type MsgListenerCallBak struct { GroupDelay map[string][]*SingleMessage SingleDelay map[string][]*SingleMessage // contains filtered or unexported fields }
func NewMsgListenerCallBak ¶
func NewMsgListenerCallBak(userID string) *MsgListenerCallBak
func (*MsgListenerCallBak) OnMsgDeleted ¶
func (m *MsgListenerCallBak) OnMsgDeleted(s string)
func (*MsgListenerCallBak) OnNewRecvMessageRevoked ¶
func (m *MsgListenerCallBak) OnNewRecvMessageRevoked(messageRevoked string)
func (*MsgListenerCallBak) OnRecvC2CReadReceipt ¶
func (m *MsgListenerCallBak) OnRecvC2CReadReceipt(msgReceiptList 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) OnRecvNewMessage ¶
func (m *MsgListenerCallBak) OnRecvNewMessage(message string)
func (*MsgListenerCallBak) OnRecvOfflineNewMessage ¶
func (m *MsgListenerCallBak) OnRecvOfflineNewMessage(message string)
func (*MsgListenerCallBak) OnRecvOnlineOnlyMessage ¶ added in v3.5.1
func (m *MsgListenerCallBak) OnRecvOnlineOnlyMessage(message string)
type SingleMessage ¶
Click to show internal directories.
Click to hide internal directories.