Documentation
¶
Index ¶
- type Event
- type Module
- func (m *Module) Emit(event Event)
- func (m *Module) GetEventChannel() chan Event
- func (m *Module) GetExternalModule(name string) interface{}
- func (m *Module) GetInterface() interface{}
- func (m *Module) SetInterface(iface interface{})
- func (m *Module) SetupDependencies(dependencies []string) error
- func (m *Module) SetupFuncAfterReady(fn func())
- type ModuleInfo
- type ModuleManager
- func (mg *ModuleManager) AddModulePath(modulePath string)
- func (mg *ModuleManager) Broadcast(eventName string, payload interface{})
- func (mg *ModuleManager) Exists(moduleName string) bool
- func (mg *ModuleManager) FindModule(moduleName string, modulePath string) (*ModuleInfo, error)
- func (mg *ModuleManager) GetFuncsAfterReady() map[string]func()
- func (mg *ModuleManager) GetModule(name string) (*Module, error)
- func (mg *ModuleManager) GetModules(names []string) (map[string]interface{}, error)
- func (mg *ModuleManager) InitModule(moduleInfo *ModuleInfo) (*ModuleInfo, error)
- func (mg *ModuleManager) Load(modulePath string, moduleName string) (*ModuleInfo, error)
- func (mg *ModuleManager) LoadModules(names []string)
- func (mg *ModuleManager) Register(name string, moduleInfo *ModuleInfo)
- func (mg *ModuleManager) SearchModule(moduleName string) (*ModuleInfo, error)
- func (mg *ModuleManager) SetupFuncAfterReady(moduleName string, fn func())
- func (mg *ModuleManager) Unregister(name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) GetEventChannel ¶
func (*Module) GetExternalModule ¶
func (*Module) GetInterface ¶
func (m *Module) GetInterface() interface{}
func (*Module) SetInterface ¶
func (m *Module) SetInterface(iface interface{})
func (*Module) SetupDependencies ¶
func (*Module) SetupFuncAfterReady ¶
func (m *Module) SetupFuncAfterReady(fn func())
type ModuleInfo ¶
type ModuleManager ¶
type ModuleManager struct {
// contains filtered or unexported fields
}
func CreateModuleManager ¶
func CreateModuleManager() *ModuleManager
func (*ModuleManager) AddModulePath ¶
func (mg *ModuleManager) AddModulePath(modulePath string)
func (*ModuleManager) Broadcast ¶
func (mg *ModuleManager) Broadcast(eventName string, payload interface{})
func (*ModuleManager) Exists ¶
func (mg *ModuleManager) Exists(moduleName string) bool
func (*ModuleManager) FindModule ¶
func (mg *ModuleManager) FindModule(moduleName string, modulePath string) (*ModuleInfo, error)
func (*ModuleManager) GetFuncsAfterReady ¶
func (mg *ModuleManager) GetFuncsAfterReady() map[string]func()
func (*ModuleManager) GetModules ¶
func (mg *ModuleManager) GetModules(names []string) (map[string]interface{}, error)
func (*ModuleManager) InitModule ¶
func (mg *ModuleManager) InitModule(moduleInfo *ModuleInfo) (*ModuleInfo, error)
func (*ModuleManager) Load ¶
func (mg *ModuleManager) Load(modulePath string, moduleName string) (*ModuleInfo, error)
func (*ModuleManager) LoadModules ¶
func (mg *ModuleManager) LoadModules(names []string)
func (*ModuleManager) Register ¶
func (mg *ModuleManager) Register(name string, moduleInfo *ModuleInfo)
func (*ModuleManager) SearchModule ¶
func (mg *ModuleManager) SearchModule(moduleName string) (*ModuleInfo, error)
func (*ModuleManager) SetupFuncAfterReady ¶
func (mg *ModuleManager) SetupFuncAfterReady(moduleName string, fn func())
func (*ModuleManager) Unregister ¶
func (mg *ModuleManager) Unregister(name string)
Click to show internal directories.
Click to hide internal directories.