cluster

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event int

Event 事件

const (
	Reconnect  Event = iota + 1 // 断线重连
	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" // 挂起(节点即将关闭,正处于资源回收中)
	Done State = "done" // 关闭(节点已经关闭,无法正常访问该节点)
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL