Documentation ¶
Index ¶
Constants ¶
View Source
const ( ERROR_PACKET_RATES = `Packet rate limit` ERROR_MAX_CONNECTIONS = `Max connection limit` ERROR_RESPONSE = `RecvMessage error` DISBALE_RESPONSE = `Server has been stopped!` )
Variables ¶
View Source
var AppConfig = &Appconfig{}
服务器当前状态
View Source
var AuthCmds []string
用户认证的命令
View Source
var Config configType
全局配置变量
View Source
var Crons = map[string]*cron.Cron{}
定时任务
View Source
var Qps int64
View Source
var SingleMode bool
是否为单机运行模式
View Source
var SumConnections int32
View Source
var UserSessions *syncmap.SyncMap
用户会话对象
View Source
var WorkerServers = make([]string, 0, 1000)
Functions ¶
func GetRandWorkerAddr ¶
func GetRandWorkerAddr() string
func InitConfig ¶
func InitConfig()
func InitWorkerAddr ¶
func InitWorkerAddr()
Types ¶
Click to show internal directories.
Click to hide internal directories.