bootstrap

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: BSD-3-Clause Imports: 67 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)

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
}

type RouterParams added in v2.6.0

type RouterParams struct {
	fx.In

	Context        context.Context
	Lifecycle      fx.Lifecycle
	ActorRuntime   *actors.Runtime
	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