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",
|
|
|
|
}
|
|
|
|
)
|