app

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(a App) error

Run starts an application as the graceful shutdown service

Types

type App

type App interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
	GetStartTimeout() time.Duration
	GetStopTimeout() time.Duration
}

Jump to

Keyboard shortcuts

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