Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶ added in v0.13.0
func Get[D Daemon](typ DaemonType) D
func Reg ¶ added in v0.13.0
func Reg(typ DaemonType, creator plugin.Creator[Daemon], cfgCreator plugin.CfgCreator[any])
Reg register a Daemon creator and its config creator.
func SetLogLevel ¶ added in v0.12.0
func SetLogLevel(lvl string)
SetLogLevel change log level dynamically after Boot.
Types ¶
type DaemonType ¶ added in v0.5.5
type DaemonType string
type OnConfigLoadedFunc ¶ added in v0.11.13
type OnConfigLoadedFunc func(any)
type OnCreatedFunc ¶ added in v0.13.0
type OnCreatedFunc func()
type OnInitializedFunc ¶ added in v0.13.0
type OnInitializedFunc func()
type Option ¶ added in v0.2.6
type Option func(*booter)
func DefaultLogCfg ¶ added in v0.6.3
func OnConfigLoaded ¶ added in v0.11.13
func OnConfigLoaded(t DaemonType, f OnConfigLoadedFunc) Option
func OnCreated ¶ added in v0.13.0
func OnCreated(t DaemonType, f OnCreatedFunc) Option
func OnInitialized ¶ added in v0.13.0
func OnInitialized(t DaemonType, f OnInitializedFunc) Option
Click to show internal directories.
Click to hide internal directories.