bootstrap

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigLoad      = errors.New("cannot load config")
	ErrDatabaseMigrate = errors.New("cannot migrate database")
)
View Source
var ErrConfigAppRead = errors.New("error reading app config")

Functions

This section is empty.

Types

type Bootstrapper added in v0.3.0

type Bootstrapper struct {
	// Commands is consumed by Wire to trigger instantiation of all command providers.
	// Commands register themselves on the Kernel via side-effect in their constructors.
	Commands  []*cobra.Command
	Kernel    *kernel.Kernel
	Migrator  *database.Migrator
	ConfigApp *config.App
}

func InitializeBootstrapper added in v0.3.0

func InitializeBootstrapper(ctx context.Context, cfgReader *config.Reader, logger *slog.Logger, cfgApp *config2.App) (*Bootstrapper, error)

func NewBootstrapper added in v0.3.0

func NewBootstrapper(commands []*cobra.Command, configApp *config.App, kernel *kernel.Kernel, migrator *database.Migrator) *Bootstrapper

func (*Bootstrapper) InitializeKernel added in v0.3.0

func (b *Bootstrapper) InitializeKernel(ctx context.Context) (*kernel.Kernel, error)

type EarlyBootstrapper added in v0.3.0

type EarlyBootstrapper struct {
	ConfigReader *configinfra.Reader
	Logger       *slog.Logger
	ConfigApp    *config.App
}

func NewEarlyBootstrapper added in v0.3.0

func NewEarlyBootstrapper() *EarlyBootstrapper

func (*EarlyBootstrapper) Bootstrap added in v0.3.0

func (b *EarlyBootstrapper) Bootstrap(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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