Documentation ¶
Index ¶
- Variables
- func NewChanWaiter(channel chan error) *chanWaiter
- func NewDirectWaiter(initial error) *chanWaiter
- func RegisterModule(name string, factory ModuleFactory)
- type App
- type Hook
- type HookModuleExt
- type HookModuleInterceptor
- type ModuleFactory
- type ModuleRegistry
- func (r *ModuleRegistry) Get(name string) (ModuleFactory, error)
- func (r *ModuleRegistry) IsRegistered(name string) bool
- func (r *ModuleRegistry) Load() []ModuleFactory
- func (r *ModuleRegistry) LoadMap() map[string]ModuleFactory
- func (r *ModuleRegistry) Register(name string, factory ModuleFactory)
- func (r *ModuleRegistry) Unregister(name string)
- type Waiter
- type WebConfig
- type WebHook
- func (h *WebHook) Close(ctx context.Context) error
- func (h *WebHook) Init(ctx context.Context, c config.Config) error
- func (h *WebHook) ModuleInitialized(ctx context.Context, m api.Module)
- func (h *WebHook) ModuleLoaded(ctx context.Context, m api.Module)
- func (h *WebHook) Run(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoModuleRegistered = errors.New("couldn't find appropriate module")
Functions ¶
func NewChanWaiter ¶
func NewChanWaiter(channel chan error) *chanWaiter
func NewDirectWaiter ¶
func NewDirectWaiter(initial error) *chanWaiter
func RegisterModule ¶
func RegisterModule(name string, factory ModuleFactory)
Types ¶
type HookModuleExt ¶
type HookModuleInterceptor ¶
HookModuleInterceptor intercept loading of an module you can use this to selectively load/unload module based on hook e.g. selectively load modules by platform
type ModuleFactory ¶
type ModuleRegistry ¶
type ModuleRegistry struct {
// contains filtered or unexported fields
}
func (*ModuleRegistry) Get ¶
func (r *ModuleRegistry) Get(name string) (ModuleFactory, error)
func (*ModuleRegistry) IsRegistered ¶
func (r *ModuleRegistry) IsRegistered(name string) bool
func (*ModuleRegistry) Load ¶
func (r *ModuleRegistry) Load() []ModuleFactory
func (*ModuleRegistry) LoadMap ¶
func (r *ModuleRegistry) LoadMap() map[string]ModuleFactory
func (*ModuleRegistry) Register ¶
func (r *ModuleRegistry) Register(name string, factory ModuleFactory)
func (*ModuleRegistry) Unregister ¶
func (r *ModuleRegistry) Unregister(name string)
type WebHook ¶
type WebHook struct {
// contains filtered or unexported fields
}
func NewWebHook ¶
func NewWebHook() *WebHook
func (*WebHook) ModuleInitialized ¶
Click to show internal directories.
Click to hide internal directories.