cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForSignal

func WaitForSignal(logger *log.Logger, callback func())

WaitForSignal blocks forever waiting for SIGTERM, SIGINT or SIGHUP to arrive from the OS. When one of these signals occurs the provided callback is run and the program exits. The provider logger is used to print which signal was caught and a polite goodbye.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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