shutdown

package
v0.4.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager added in v0.4.6

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

func NewManager added in v0.4.6

func NewManager() *Manager

func (*Manager) AddHandler added in v0.4.6

func (sh *Manager) AddHandler(handler func(context.Context) error)

func (*Manager) RegisterShutdown added in v0.4.6

func (sh *Manager) RegisterShutdown(name string, shutdown func(context.Context) error)

func (*Manager) Shutdown added in v0.4.6

func (sh *Manager) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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