initialize

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeforeInit

func BeforeInit(ctx context.Context) error

func BeforeRun

func BeforeRun(ctx context.Context) error

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

type InitializerFunc func(context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL