shutter

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 1 Imported by: 0

README

Shutter the shutdown manager

Docs: https://godoc.org/github.com/eoscanada/shutter

Goroutines and processes shutdown management

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shutter

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

func New

func New(f func()) *Shutter

func (*Shutter) Done

func (s *Shutter) Done() <-chan struct{}

func (*Shutter) Err

func (s *Shutter) Err() error

func (*Shutter) IsDown

func (s *Shutter) IsDown() bool

func (*Shutter) SetCallback added in v1.1.0

func (s *Shutter) SetCallback(f func())

func (*Shutter) Shutdown

func (s *Shutter) Shutdown(err error)

Jump to

Keyboard shortcuts

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