app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

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(
	startingCallbacks []func(),
	startedCallbacks []func(),
	signalCallbacks []SignalCallback,
	asyncCallbacks []func(),
	terminatedCallbacks []func(),
) *App

func (*App) Run

func (app *App) Run(executerFunc func())

type SignalCallback

type SignalCallback struct {
	Signals      []os.Signal
	CallbackFunc func(ctx context.Context)
}

Jump to

Keyboard shortcuts

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