shutdown

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Run(context.Context)
	Shutdown(context.Context)
	Register(string, func(context.Context) error)
}

func NewManager added in v0.7.0

func NewManager(log *log.PrefixLogger, timeout time.Duration, cancelFn context.CancelFunc) Manager

NewManager creates a new shutdown manager.

Jump to

Keyboard shortcuts

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