shutdown

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHandler

func AddHandler(handler Handler)

func Context added in v0.7.0

func Context() context.Context

func Exit added in v0.7.0

func Exit(reason string)

func Shutdown

func Shutdown(reason string)

func Wait

func Wait() string

func WithContext added in v0.7.0

func WithContext(ctx context.Context) (context.Context, error)

Types

type Handler added in v0.4.0

type Handler func(ctx context.Context, reason string) error

Jump to

Keyboard shortcuts

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