Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GlobalObj ¶
type GlobalObj struct {
//当前zinx实例对象
WsServer ziface.IServer
//服务器名字
Name string
//允许最大连接人数
MaxConn int
//当前数据包最大值
MaxPackageSize uint32
//类型 ws,wss
Scheme string
//连接地址
Host string
//端口
Port uint32
//子协议
Path string
//通讯WSS TLS证书
ServerPem string
//通讯WSS TLS密钥
ServerKey string
//心跳检查间隔
HeartbeatInterval int
//工作池大小 一般是cpu大小
WorkerPoolSize int64
//一个工作池处理消息的最大数量
MaxWorkerTaskLen uint32
//发送消息的缓冲最大长度
MaxMsgChanLen uint32
//房间最大人数
MaxJoinRoom int
//aes配置
Aes aes
}
存储一些数据供全局使用
var GlobalObject *GlobalObj
Click to show internal directories.
Click to hide internal directories.