bootstrap

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBootstrapConfig    = errors.New("cannot bootstrap config")
	ErrBootstrapTelemetry = errors.New("cannot bootstrap telemetry")
	ErrConfigLoad         = errors.New("cannot load config")
	ErrConfigAppRead      = errors.New("cannot read app config")
	ErrConfigOtelRead     = errors.New("cannot read otel config")
)

Functions

This section is empty.

Types

type Boot added in v0.4.0

type Boot struct {
	ConfigReader *configinfra.Reader
	Logger       *slog.Logger
	ConfigLog    *config.Log
	ConfigOtel   *config.Otel
	Telemetry    *telemetry.Telemetry
}

func Bootstrap added in v0.4.0

func Bootstrap(ctx context.Context) (*Boot, error)

type Kernel

type Kernel struct {
	// contains filtered or unexported fields
}

func InitializeKernel added in v0.4.0

func InitializeKernel(contextContext context.Context, reader *config.Reader, log *config2.Log, logger *slog.Logger) (*Kernel, error)

func NewKernel

func NewKernel(commands []*cobra.Command, db *sql.DB, logger *slog.Logger, rootCommand *cmd.Root) *Kernel

func (*Kernel) Execute

func (b *Kernel) Execute(ctx context.Context, output io.Writer) error

Jump to

Keyboard shortcuts

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