Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeforeInit ¶
func Register ¶
func Register(initializer Initializer)
Types ¶
type Initializer ¶
type Initializer interface { // BeforeInit is called before application init. BeforeInit(context.Context) error // BeforeRun is called before application run. BeforeRun(context.Context) error }
func NewBasicInitializer ¶
func NewBasicInitializer(name string, beforeInit InitializerFunc, afterInit InitializerFunc) Initializer
type InitializerFunc ¶
Click to show internal directories.
Click to hide internal directories.