application

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
}

type App

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

func New

func New() *App

func (*App) AddAdapter

func (a *App) AddAdapter(adapters ...Adapter)

func (*App) Run

func (a *App) Run(ctx context.Context)

func (*App) WithShutdownTimeout

func (a *App) WithShutdownTimeout(timeout time.Duration)

Jump to

Keyboard shortcuts

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