bootstrap

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeRuntimeBuildInputs

func NormalizeRuntimeBuildInputs(ctx context.Context, appConfig any, logger *slog.Logger) (context.Context, error)

func Run

func Run[Config any, Runtime runtime](opts Options[Config, Runtime]) int

Types

type Options

type Options[Config any, Runtime runtime] struct {
	Version                string
	Initialize             func(version string)
	LoadConfig             func() (Config, error)
	LoadConfigErrorMessage string
	NewLogger              func(config Config) (*slog.Logger, error)
	LoggerConfig           func(config Config) sharedlogging.Config
	LoggerFileName         string
	LoggerLevel            func(config Config) string
	StartupMessage         string
	StartupFields          func(config Config) []any
	BuildTimeout           time.Duration
	BuildRuntime           func(ctx context.Context, config Config, logger *slog.Logger) (Runtime, error)
	BuildErrorMessage      string
	Stderr                 io.Writer
}

Jump to

Keyboard shortcuts

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