cluster

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 0 Imported by: 4

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                  // 断开连接
)

type Kind

type Kind string

Kind 集群实例类型

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

type State

type State string

State 集群实例状态

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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