Documentation
¶
Index ¶
- type Base
- type OnAdvancedMsgListener
- type OnBatchMsgListener
- type OnConnListener
- type OnConversationListener
- type OnCustomBusinessListener
- type OnFriendshipListener
- type OnFriendshipListenerSdk
- type OnGroupListener
- type OnListenerForService
- type OnMessageKvInfoListener
- type OnSignalingListener
- type OnUserListener
- type SendMsgCallBack
- type UploadFileCallback
- type UploadLogProgress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnAdvancedMsgListener ¶
type OnAdvancedMsgListener interface {
OnRecvNewMessage(message string)
OnRecvC2CReadReceipt(msgReceiptList string)
OnRecvGroupReadReceipt(groupMsgReceiptList string)
OnNewRecvMessageRevoked(messageRevoked string)
OnRecvMessageExtensionsChanged(msgID string, reactionExtensionList string)
OnRecvMessageExtensionsDeleted(msgID string, reactionExtensionKeyList string)
OnRecvMessageExtensionsAdded(msgID string, reactionExtensionList string)
OnRecvOfflineNewMessage(message string)
OnMsgDeleted(message string)
OnRecvOnlineOnlyMessage(message string)
}
type OnBatchMsgListener ¶
type OnConnListener ¶
type OnConversationListener ¶
type OnConversationListener interface {
OnSyncServerStart()
OnSyncServerFinish()
//OnSyncServerProgress(progress int)
OnSyncServerFailed()
OnNewConversation(conversationList string)
OnConversationChanged(conversationList string)
OnTotalUnreadMessageCountChanged(totalUnreadCount int32)
OnConversationUserInputStatusChanged(change string)
}
type OnCustomBusinessListener ¶
type OnCustomBusinessListener interface {
OnRecvCustomBusinessMessage(businessMessage string)
}
type OnFriendshipListener ¶
type OnFriendshipListener interface {
OnFriendApplicationAdded(friendApplication string)
OnFriendApplicationDeleted(friendApplication string)
OnFriendApplicationAccepted(friendApplication string)
OnFriendApplicationRejected(friendApplication string)
OnFriendAdded(friendInfo string)
OnFriendDeleted(friendInfo string)
OnFriendInfoChanged(friendInfo string)
OnBlackAdded(blackInfo string)
OnBlackDeleted(blackInfo string)
}
type OnFriendshipListenerSdk ¶
type OnFriendshipListenerSdk interface {
OnFriendApplicationAdded(friendApplication model_struct.LocalFriendRequest)
OnFriendApplicationDeleted(friendApplication model_struct.LocalFriendRequest)
OnFriendApplicationAccepted(friendApplication model_struct.LocalFriendRequest)
OnFriendApplicationRejected(friendApplication model_struct.LocalFriendRequest)
OnFriendAdded(friendInfo model_struct.LocalFriend)
OnFriendDeleted(friendInfo model_struct.LocalFriend)
OnFriendInfoChanged(friendInfo model_struct.LocalFriend)
OnBlackAdded(blackInfo model_struct.LocalBlack)
OnBlackDeleted(blackInfo model_struct.LocalBlack)
}
func NewOnFriendshipListenerSdk ¶
func NewOnFriendshipListenerSdk(listener func() OnFriendshipListener) OnFriendshipListenerSdk
type OnGroupListener ¶
type OnGroupListener interface {
OnJoinedGroupAdded(groupInfo string)
OnJoinedGroupDeleted(groupInfo string)
OnGroupMemberAdded(groupMemberInfo string)
OnGroupMemberDeleted(groupMemberInfo string)
OnGroupApplicationAdded(groupApplication string)
OnGroupApplicationDeleted(groupApplication string)
OnGroupInfoChanged(groupInfo string)
OnGroupDismissed(groupInfo string)
OnGroupMemberInfoChanged(groupMemberInfo string)
OnGroupApplicationAccepted(groupApplication string)
OnGroupApplicationRejected(groupApplication string)
}
type OnListenerForService ¶
type OnListenerForService interface {
//有人申请进群
OnGroupApplicationAdded(groupApplication string)
//进群申请被同意
OnGroupApplicationAccepted(groupApplication string)
//有人申请添加你为好友
OnFriendApplicationAdded(friendApplication string)
//好友申请被同意
OnFriendApplicationAccepted(groupApplication string)
//收到新消息
OnRecvNewMessage(message string)
}
type OnMessageKvInfoListener ¶
type OnMessageKvInfoListener interface {
OnMessageKvInfoChanged(messageChangedList string)
}
type OnSignalingListener ¶
type OnSignalingListener interface {
OnReceiveNewInvitation(receiveNewInvitationCallback string)
OnInviteeAccepted(inviteeAcceptedCallback string)
OnInviteeAcceptedByOtherDevice(inviteeAcceptedCallback string)
OnInviteeRejected(inviteeRejectedCallback string)
OnInviteeRejectedByOtherDevice(inviteeRejectedCallback string)
//
OnInvitationCancelled(invitationCancelledCallback string)
//
OnInvitationTimeout(invitationTimeoutCallback string)
//
OnHangUp(hangUpCallback string)
OnRoomParticipantConnected(onRoomParticipantConnectedCallback string)
OnRoomParticipantDisconnected(onRoomParticipantDisconnectedCallback string)
}
type OnUserListener ¶
type SendMsgCallBack ¶
type UploadFileCallback ¶
type UploadFileCallback interface {
Open(size int64) // 文件打开的大小
PartSize(partSize int64, num int) // 分片大小,数量
HashPartProgress(index int, size int64, partHash string) // 每块分片的hash值
HashPartComplete(partsHash string, fileHash string) // 分块完成,服务端标记hash和文件最终hash
UploadID(uploadID string) // 上传ID
UploadPartComplete(index int, partSize int64, partHash string) // 上传分片进度
UploadComplete(fileSize int64, streamSize int64, storageSize int64) // 整体进度
Complete(size int64, url string, typ int) // 上传完成
}
type UploadLogProgress ¶
Click to show internal directories.
Click to hide internal directories.