20 lines
363 B
Go
20 lines
363 B
Go
package util
|
|
|
|
const (
|
|
NewSession = iota
|
|
NewConnection
|
|
ConnectInited //used to disptatch new connection session id
|
|
ConnectionReady
|
|
ErrorCmd
|
|
)
|
|
|
|
var (
|
|
CmdTypeMap = map[int]string{
|
|
NewSession: "new_session",
|
|
NewConnection: "new_connection",
|
|
ConnectInited: "connect_inited",
|
|
ConnectionReady: "connection_ready",
|
|
ErrorCmd: "error",
|
|
}
|
|
)
|