Back to

Package shutdown

Latest Go to latest
Published: Jun 24, 2020 | License: Apache-2.0 | Module:


Package shutdown implements a global process shutdown mechanism. It is used by package to perform graceful shutdown of software components. It is a separate package in order to avoid circular dependencies.


Package Files

func Register

func Register(f Func)

func Run

func Run()

Run run callbacks added by Register. This function is not for general use.

type Func

type Func func()

Func is the type of function run on shutdowns.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier