Documentation ¶
Index ¶
- Constants
- func CurrentChannelMessageBoxId(key int32) (seq int64)
- func CurrentChannelPtsId(key int32) (seq int64)
- func CurrentMessageBoxId(key int32) (seq int64)
- func CurrentPtsId(key int32) (seq int64)
- func CurrentQtsId(key int32) (seq int64)
- func CurrentSeqId(key int32) (seq int64)
- func GetUUID() (uuid int64)
- func NextChannelMessageBoxId(key int32) (seq int64)
- func NextChannelNPtsId(key int32, n int) (seq int64)
- func NextChannelPtsId(key int32) (seq int64)
- func NextMessageBoxId(key int32) (seq int64)
- func NextMessageDataId(key int64) (seq int64)
- func NextNPtsId(key int32, n int) (seq int64)
- func NextPtsId(key int32) (seq int64)
- func NextQtsId(key int32) (seq int64)
- func NextSeqId(key int32) (seq int64)
- func RegisterCoreModel(model CoreModel)
- type ChannelCallback
- type ContactCallback
- type CoreModel
- type DialogCallback
- type NotifySettingCallback
- type PhotoCallback
- type UsernameCallback
Constants ¶
View Source
const ( TOKEN_TYPE_APNS = 1 TOKEN_TYPE_GCM = 2 TOKEN_TYPE_MPNS = 3 TOKEN_TYPE_SIMPLE_PUSH = 4 TOKEN_TYPE_UBUNTU_PHONE = 5 TOKEN_TYPE_BLACKBERRY = 6 // Android里使用 TOKEN_TYPE_INTERNAL_PUSH = 7 // web TOKEN_TYPE_WEB_PUSH = 10 TOKEN_TYPE_MAXSIZE = 10 )
Variables ¶
This section is empty.
Functions ¶
func CurrentChannelPtsId ¶
func CurrentMessageBoxId ¶
func CurrentPtsId ¶
func CurrentQtsId ¶
func CurrentSeqId ¶
func NextChannelMessageBoxId ¶
func NextChannelNPtsId ¶
func NextChannelPtsId ¶
func NextMessageBoxId ¶
func NextMessageDataId ¶
func NextNPtsId ¶
func RegisterCoreModel ¶
func RegisterCoreModel(model CoreModel)
Types ¶
type ChannelCallback ¶
type ChannelCallback interface {
GetTopMessageListByIdList(idList []int32) (topMessages map[int32]int32)
}
dialog#e4def5db flags:#
pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage = Dialog;
type ContactCallback ¶
type CoreModel ¶
type CoreModel interface { InstallModel() RegisterCallback(cb interface{}) }
func InstallCoreModels ¶
必须在mysql/redis等依赖安装完后才能执行
type DialogCallback ¶
type NotifySettingCallback ¶
type NotifySettingCallback interface {
GetNotifySettings(selfUserId int32, peer *base.PeerUtil) *mtproto.PeerNotifySettings
}
type PhotoCallback ¶
Directories ¶
Path | Synopsis |
---|---|
Package account is a generated protocol buffer package.
|
Package account is a generated protocol buffer package. |
Package phone_call is a generated protocol buffer package.
|
Package phone_call is a generated protocol buffer package. |
Package user is a generated protocol buffer package.
|
Package user is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.