Documentation
¶
Index ¶
Constants ¶
View Source
const ( MOUDLE_ID_NULL = iota MOUDLE_ID_GAME MOUDLE_ID_USER MODULE_ID_DISPATCH MODULE_ID_AGENT MODULE_ID_MQTT )
View Source
const ( MODULE_STATE_INIT = iota MODULE_STATE_INIT_ERR MODULE_STATE_RUNNING MODULE_STATE_CRASH MODULE_STATE_CLOSE MODULE_STATE_END )
View Source
const (
MSG_TYPE_PING = iota
)
Variables ¶
View Source
var ModStateMap = []string{
"init",
"init_error",
"running",
"crash",
"closed",
"end",
}
module 状态映射值,只读不写
View Source
var Modules sync.Map
Functions ¶
Types ¶
type Mod ¶
type Mod struct { /*消息队列*/ BufLen uint32 Que chan interface{} Id uint32 Name string Stat int // contains filtered or unexported fields }
func QueryMbyID ¶
Click to show internal directories.
Click to hide internal directories.