Versions in this module Expand all Collapse all v1 v1.0.0 Dec 19, 2023 Changes in this version + const ModuleMaxCount + const ModuleName_Net + const ModuleName_Transact + const ModuleStateFini + const ModuleStateInit + const ModuleStateInvalid + const ModuleStateRun + const ModuleStateShutdown + const ModuleStateWaitShutdown + var AppModule = newModuleMgr() + var Config = Configuration + func RegisteModule(m Module, tickInterval time.Duration, priority int) + func RegistePreloadModule(m PreloadModule, priority int) + func Start() *utils.Waitor + func Stop() + func UnregisteModule(m Module) + type Configuration struct + Options basic.Options + func (c *Configuration) Close() error + func (c *Configuration) Init() error + func (c *Configuration) Name() string + type Module interface + Init func() + ModuleName func() string + Shutdown func() + Update func() + type ModuleEntity struct + type ModuleMgr struct + func (this *ModuleMgr) Close() + func (this *ModuleMgr) GetCurrTime() time.Time + func (this *ModuleMgr) GetCurrTimeNano() int64 + func (this *ModuleMgr) GetCurrTimeSec() int64 + func (this *ModuleMgr) GetModuleByName(name string) Module + func (this *ModuleMgr) OnStart() + func (this *ModuleMgr) OnStop() + func (this *ModuleMgr) OnTick() + func (this *ModuleMgr) RegisteModule(m Module, tickInterval time.Duration, priority int) + func (this *ModuleMgr) RegistePreloadModule(m PreloadModule, priority int) + func (this *ModuleMgr) Start() *utils.Waitor + func (this *ModuleMgr) UnregisteModule(m Module) + func (this *ModuleMgr) UnregistePreloadModule(m PreloadModule) + type PreloadModule interface + Start func() + type PreloadModuleEntity struct