cluster

package
v0.0.0-...-c1e5b24 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 0 Imported by: 3

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 (
	Connect    Event = iota + 1 // 打开连接
	Reconnect                   // 断线重连
	Disconnect                  // 断开连接
)

func (Event) String

func (e Event) String() string

type Kind

type Kind string

Kind 集群实例类型

const (
	Master Kind = "master" // 管理服
	Gate   Kind = "gate"   // 网关服
	Node   Kind = "node"   // 节点服
	Mesh   Kind = "mesh"   // 微服务
)

func (Kind) String

func (k Kind) String() string

type State

type State string

State 集群实例状态

const (
	Work State = "work" // 工作(节点正常工作,可以分配更多玩家到该节点)
	Busy State = "busy" // 繁忙(节点资源紧张,不建议分配更多玩家到该节点上)
	Hang State = "hang" // 挂起(节点即将关闭,正处于资源回收中)
	Shut State = "shut" // 关闭(节点已经关闭,无法正常访问该节点)
)

func (State) String

func (s State) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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