Help us shape the future of Go! Take the 2026 Go Developer Survey

bootstrap

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package bootstrap assembles the application and its infrastructure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

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

Runtime loads and owns the configured application services.

func New

func New(configFile *configlib.ConfigFile[appconfig.Settings]) *Runtime

New creates a lazily configured runtime.

func (*Runtime) Application

func (runtime *Runtime) Application(ctx context.Context) (*app.Application, error)

Application returns the configured application, creating it when first needed.

func (*Runtime) Close

func (runtime *Runtime) Close() error

Close releases the configured application resources.

Jump to

Keyboard shortcuts

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