base: Index | Files

package shutdown

import ""

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 Uses

func Register(f Func)

func Run Uses

func Run()

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

type Func Uses

type Func func()

Func is the type of function run on shutdowns.

Package shutdown imports 1 packages (graph) and is imported by 3 packages. Updated 2019-10-10. Refresh now. Tools for package owners.