app

package
v0.0.0-...-8ce0c72 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(startCallback StartFunc)

Start sets up the main application context, the slog.Logger, an errgroup.Group, and Open Telemetry tracing, and calls the given callback. The callback function should start up all necessary components of the app using the error group, and not block on anything itself in the main goroutine.

Types

type Goer

type Goer interface {
	Go(func() error)
}

Goer is just the executing part of errgroup.Group.

type StartFunc

type StartFunc = func(ctx context.Context, log *slog.Logger, eg Goer) error

StartFunc is given to Start and should not block, instead starting components with the given error group.

Jump to

Keyboard shortcuts

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