shutdown

package
v0.0.0-...-5e036e0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExitFunc

type ExitFunc func(int)

type Manager

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

func New

func New(log *log.Logger) *Manager

func (*Manager) Register

func (m *Manager) Register(fn ShutdownFunc)

func (*Manager) WaitAndShutdown

func (m *Manager) WaitAndShutdown()

type Option

type Option func(*Manager)

type ShutdownFunc

type ShutdownFunc func(context.Context) error

type SignalFunc

type SignalFunc func(context.Context, ...os.Signal) (context.Context, context.CancelFunc)

Jump to

Keyboard shortcuts

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