Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalObj ¶
type GlobalObj struct { /* Server */ TcpServer tiface.IServer //当前的全局Server对象 Host string //当前服务器主机IP TcpPort int //当前服务器主机监听端口号 Name string //当前服务器名称 /* Tigerkin */ Version string //当前Tigerkin版本号 MaxPacketSize uint32 //当前框架数据包的最大值 MaxConn int //当前服务器主机允许的最大链接个数 WorkerPoolSize uint32 //业务工作Worker池的goroutine数量 MaxWorkerTaskLen uint32 //每个worker对应的消息队列中任务数量的最大值 MaxMsgChanLen uint32 //SendBuffMsg发送消息的缓冲最大长度 ConfFilePath string // 配置文件路径 }
var GlobalObject *GlobalObj
定义一个全局的对象
Click to show internal directories.
Click to hide internal directories.