Files
service-gateway/internal/global/global.go

28 lines
638 B
Go

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