Documentation
¶
Index ¶
- Variables
- func Load(cfg config.Config, options LoadOption) (err error)
- func RegisterLoadHook(name string, hook func(config.Config) error) error
- func Reload(cfg config.Config, options LoadOption) (err error)
- func Restart(cfg config.Config, options LoadOption) error
- func Unload() (err error)
- type LoadOption
Constants ¶
This section is empty.
Variables ¶
View Source
var LoadHooks = map[string]func(config.Config) error{}
LoadHooks used to load custom widgets/processes
Functions ¶
func RegisterLoadHook ¶
RegisterLoadHook register custom load hook
func Reload ¶
func Reload(cfg config.Config, options LoadOption) (err error)
Reload the application engine
Types ¶
type LoadOption ¶
type LoadOption struct {
Action string `json:"action"`
IgnoredAfterLoad bool `json:"ignoredAfterLoad"`
IsReload bool `json:"reload"`
}
LoadOption the load option
Click to show internal directories.
Click to hide internal directories.