feat 排队

This commit is contained in:
2026-01-06 18:36:15 +08:00
parent 8289e2b4d9
commit 46839cd11b
20 changed files with 482 additions and 96 deletions

19
internal/global/global.go Normal file
View File

@@ -0,0 +1,19 @@
package global
const (
KeyGatewayAccessToken = "gateway:token:access:%v"
KeyGatewayRefreshToken = "gateway:token:refresh:%v"
KeyGatewayInfo = "gateway:info:%v"
HFieldInfoGatewaySID = "gateway_sid"
)
const (
MaxOnlineSize = 100 // 最大在线人数
MaxQueueUpSize = 100 // 最大排队人数
)
// PublicPaths 不需要鉴权的接口,硬编码注册
var PublicPaths = []string{
"/user/info",
}