Documentation ¶ Index ¶ type Event type Kind type State Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Event ¶ type Event int Event 事件 const ( Connect Event = iota + 1 // 打开连接 Reconnect // 断线重连 Disconnect // 断开连接 ) type Kind ¶ added in v0.0.3 type Kind string Kind 集群实例类型 const ( Master Kind = "master" // 管理服 Gate Kind = "gate" // 网关服 Node Kind = "node" // 节点服 ) type State ¶ added in v0.0.3 type State string State 集群实例状态 const ( Work State = "work" // 工作(节点正常工作,可以分配更多玩家到该节点) Busy State = "busy" // 繁忙(节点资源紧张,不建议分配更多玩家到该节点上) Hang State = "hang" // 挂起(节点即将关闭,正处于资源回收中) Shut State = "shut" // 关闭(节点已经关闭,无法正常访问该节点) ) Source Files ¶ View all Source files cluster.go Directories ¶ Show internal Expand all Path Synopsis client gate master node Click to show internal directories. Click to hide internal directories.