app

package
v1.6.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, runners ...Runner) error

Types

type App

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

func New

func New(info Info, root *cobra.Command) *App

func (*App) Execute

func (a *App) Execute()

func (*App) Paths

func (a *App) Paths() paths.App

type Info

type Info struct {
	Name      string
	ID        string
	Version   string
	Commit    string
	BuildTime string
}

type Runner

type Runner interface {
	Run(ctx context.Context) error
	Shutdown(ctx context.Context) error
}

func RunnerFunc

func RunnerFunc(run func(ctx context.Context) error) Runner

Jump to

Keyboard shortcuts

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