Documentation ¶
Index ¶
Constants ¶
View Source
const ( CmdPull = 1 CmdPost = 2 CmdFollow = 3 CmdUnFollow = 4 CmdLike = 5 CmdOnline = 6 CmdOffline = 7 )
把客户端请求在服务集群内部的命令字
View Source
const ( UserLevelNormal = 0 UserLevelSmall = 1 UserLevelMid = 2 UserLevelBig = 3 UserLevelSuper = 4 )
用户V级定义
View Source
const ClientHeartBeatIntervalSec = 30
客户端心跳间隔
View Source
const ClientMaxIdleSec = 70
客户端心跳超时时长
View Source
const MaxMsgCountInPull = 15
一次pull请求最多拉取多少条msg
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBFollowed ¶
用户followed表
type DBMsgContent ¶
msgContent表
type DBTransFollowed ¶
用户升级迁移临时followed表,记录迁移过程中发生的followed关系
type DBTransUnFollowed ¶
用户升级转移临时TransUnFollowed表,记录迁移过程中发生的unfollowed关系
type DBUserLevel ¶
type DBUserLevel struct { UserId int64 Level int FollowerCount int // InTrans bool TransBeginTime int64 }
用户V级表
type ReqCmdT ¶
type ReqCmdT struct { //req编号,本机唯一 ReqId int64 Cmd int ReqMsg interface{} //req数据体指针,内容以及格式由命令收发方共同协商定义 }
内部命令定义
type ReqOffline ¶
type ReqOffline struct {
UserId int64
}
Click to show internal directories.
Click to hide internal directories.