gotunnelserver/util/const.go

20 lines
363 B
Go
Raw Permalink Normal View History

2024-11-13 15:46:03 +08:00
package util
const (
NewSession = iota
NewConnection
2024-11-13 22:26:29 +08:00
ConnectInited //used to disptatch new connection session id
ConnectionReady
ErrorCmd
2024-11-13 15:46:03 +08:00
)
2024-11-15 16:49:01 +08:00
var (
CmdTypeMap = map[int]string{
NewSession: "new_session",
NewConnection: "new_connection",
ConnectInited: "connect_inited",
ConnectionReady: "connection_ready",
ErrorCmd: "error",
}
)