shutdown

package
v0.0.0-...-9f1a7a8 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, w io.Writer) error

Do shutdowns All registered Shutdownable items

func Register

func Register(s Shutdownable)

Register registers an item as shutdownable

Types

type Shutdownable

type Shutdownable interface {
	Shutdown(ctx context.Context) error
}

Shutdownable is an interface representing the ability to shutdown a particular resource

Jump to

Keyboard shortcuts

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