app

package
v0.0.0-...-dd05744 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(opts ...Option) *App

func (*App) GracefulShutdown

func (a *App) GracefulShutdown(ctx context.Context) error

func (*App) RegisterShutdown

func (a *App) RegisterShutdown(fn func(ctx context.Context) error)

func (*App) Run

func (a *App) Run() error

type Option

type Option func(a *App)

func WithLogger

func WithLogger(log *slog.Logger) Option

Jump to

Keyboard shortcuts

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