mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-26 16:46:14 +08:00
25 lines
534 B
Go
25 lines
534 B
Go
package consts
|
||
|
||
const (
|
||
TCPMsgCodeSuccess = 2000 // 成功的状态码
|
||
)
|
||
|
||
// 定时任务
|
||
const (
|
||
TCPCronHeartbeatVerify = "tcpHeartbeatVerify"
|
||
TCPCronHeartbeat = "tcpHeartbeat"
|
||
TCPCronAuthVerify = "tcpAuthVerify"
|
||
)
|
||
|
||
// 认证分组
|
||
const (
|
||
TCPClientGroupCron = "cron" // 定时任务
|
||
TCPClientGroupQueue = "queue" // 消息队列
|
||
TCPClientGroupAuth = "auth" // 服务授权
|
||
)
|
||
|
||
const (
|
||
TCPHeartbeatTimeout = 300 // tcp心跳超时,默认300s
|
||
TCPRpcTimeout = 10 // rpc通讯超时时间, 默认10s
|
||
)
|