func Stop() { AppModule.Close() err := core.ExecuteHook(core.HOOK_AFTER_STOP) if err != nil { logger.Error("ExecuteHook(HOOK_BEFORE_START) error", err) } }
func Start() *utils.Waitor { err := core.ExecuteHook(core.HOOK_BEFORE_START) if err != nil { logger.Error("ExecuteHook(HOOK_BEFORE_START) error", err) } return AppModule.Start() }