global

package
v0.0.0-...-bf94cd9 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERROR_PACKET_RATES    = `Packet rate limit`
	ERROR_MAX_CONNECTIONS = `Max connection limit`
	ERROR_RESPONSE        = `RecvMessage error`
	DISBALE_RESPONSE      = `Server has been stopped!`
)

Variables

View Source
var AppConfig = &Appconfig{}

服务器当前状态

View Source
var AuthCmds []string

用户认证的命令

View Source
var Config configType

全局配置变量

View Source
var Crons = map[string]*cron.Cron{}

定时任务

View Source
var Qps int64
View Source
var SingleMode bool

是否为单机运行模式

View Source
var SumConnections int32
View Source
var UserSessions *syncmap.SyncMap

用户会话对象

View Source
var WorkerServers = make([]string, 0, 1000)

Functions

func GetRandWorkerAddr

func GetRandWorkerAddr() string

func InitConfig

func InitConfig()

func InitWorkerAddr

func InitWorkerAddr()

func IsAuthCmd

func IsAuthCmd(cmd string) bool

Types

type Appconfig

type Appconfig struct {
	Enable int64 //  Listen to clients
	Status string
}

Jump to

Keyboard shortcuts

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