Documentation ¶
Index ¶
Constants ¶
View Source
const ( // login CommandLoginSignIn = "login.signin" CommandLoginSignOut = "login.signout" // chat CommandChatUserTalk = "chat.user.talk" CommandChatGroupTalk = "chat.group.talk" CommandChatTalkAck = "chat.talk.ack" // 离线 CommandOfflineIndex = "chat.offline.index" CommandOfflineContent = "chat.offline.content" // 群管理 CommandGroupCreate = "chat.group.create" CommandGroupJoin = "chat.group.join" CommandGroupQuit = "chat.group.quit" CommandGroupMembers = "chat.group.members" CommandGroupDetail = "chat.group.detail" )
Command a defined data type between client and logicServer
View Source
const ( MetaDestServer = "dest.server" MetaDestChannels = "dest.channels" )
Meta Key of a packet
View Source
const ( SNWGateway = "wgateway" SNTGateway = "tgateway" SNLogin = "login" //login SNChat = "chat" //chat SNService = "service" //rpc service )
Service Name 定义统一的服务名
View Source
const ( OfflineMessageExpiresIn = time.Hour * 24 * 30 OfflineSyncIndexCount = 3000 OfflineMessageStoreDays = 30 //days )
View Source
const (
// AlgorithmHashSlots algorithm in routing
AlgorithmHashSlots = "hashslots"
)
Variables ¶
View Source
var ( MagicLogicPkt = Magic{0xc3, 0x11, 0xa3, 0x65} MagicBasicPkt = Magic{0xc3, 0x15, 0xa7, 0x65} )
View Source
var Seq = sequence{/* contains filtered or unexported fields */}
Seq Seq
Functions ¶
This section is empty.
Types ¶
type MessageType ¶
type MessageType uint
const ( MessageTypeText MessageType = iota + 1 MessageTypeImage MessageTypeVoice MessageTypeVideo )
Click to show internal directories.
Click to hide internal directories.