signals

package
v0.9.5-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GracefulShutdown

func GracefulShutdown(cancel context.CancelFunc)

GracefulShutdown catches signals of Interrupt, SIGINT, SIGTERM, SIGQUIT and cancel a context. If any signals caught, it will call the CancelFunc to cancel a context. If a second signal caught, exit directly with code 1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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