Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ModuleManager ¶
type ModuleManager interface { // regist a new module Regist(name string, creator NewModuleFunc, modes ...common.RunModeType) error // set module dependency modules SetDependencies(name string, dependencies ...string) error // when [modules] are all ready, hook will called AddReadyHook(hook ModuleReadyHook, modules ...string) error // start to run all modules Start(ctx context.Context, mode common.RunModeType, conf *modules.ModuleRuntimeConfigs) error }
func NewModuleManager ¶
func NewModuleManager() ModuleManager
type ModuleReadyHook ¶
type NewModuleFunc ¶
type NewModuleFunc func(*modules.ModuleRuntimeConfigs) (modules.Module, error)
Click to show internal directories.
Click to hide internal directories.