lib

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shutdown

type Shutdown struct {
	sync.WaitGroup
	Stop chan struct{}
	// contains filtered or unexported fields
}

Shutdown builds a shutdown that might be used to monitor process and catch signals for proper terminaison

func NewShutdown

func NewShutdown() *Shutdown

NewShutdown build a new Shutdown struct

func (*Shutdown) Shutdown

func (h *Shutdown) Shutdown(reason string)

Shutdown Ask all processes to shutdown

Jump to

Keyboard shortcuts

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