27 lines
597 B
Go
27 lines
597 B
Go
package global
|
|
|
|
var ServiceStatus = ServiceStatusStarting
|
|
|
|
type ServiceStatusCode int32
|
|
|
|
const (
|
|
ServiceStatusStarting ServiceStatusCode = iota // 启动中
|
|
ServiceStatusReady // 就绪
|
|
ServiceStatusStopping // 停止中
|
|
)
|
|
|
|
var GatewaySID int64
|
|
|
|
const (
|
|
KeyGatewayAccessToken = "gateway:token:access:%v"
|
|
KeyGatewayRefreshToken = "gateway:token:refresh:%v"
|
|
|
|
KeyGatewayInfo = "gateway:info:%v"
|
|
HFieldInfoGatewaySID = "gateway_sid"
|
|
)
|
|
|
|
const (
|
|
MaxOnlineSize = 100 // 最大在线人数
|
|
MaxQueueUpSize = 100 // 最大排队人数
|
|
)
|