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

bootstrap

package
v2.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: BSD-3-Clause Imports: 99 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(ctx context.Context) error

func BuildGormLogger

func BuildGormLogger(cfg *config.Config) logger.Interface

func NewHTTPServer added in v2.6.0

func NewHTTPServer(lc fx.Lifecycle, p HTTPServerParams) (*http.Server, error)

NewHTTPServer builds the shared HTTP/gRPC server and registers its lifecycle.

func SetupSlogLogger

func SetupSlogLogger(cfg *config.Config, telemetryHandler slog.Handler)

SetupSlogLogger installs the console logger and the diagnostics log tee. When telemetryHandler is set, records are also sent to it at the same level.

Types

type HTTPServerParams added in v2.6.0

type HTTPServerParams struct {
	fx.In

	AppCtx       context.Context
	Config       *config.Config
	Router       *echo.Echo
	TunnelServer *edge.TunnelServer
	Scheduler    schedulertypes.JobScheduler
}

type RouterParams added in v2.6.0

type RouterParams struct {
	fx.In

	Context        context.Context
	Lifecycle      fx.Lifecycle
	Config         *config.Config
	HandlerDeps    api.HandlerDeps
	AuthMiddleware *auth.AuthMiddleware
	TunnelRegistry *edge.TunnelRegistry
}

Jump to

Keyboard shortcuts

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