service

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSignalHandler

func NewSignalHandler() (stopCh <-chan struct{})

NewSignalHandler registers a SIGTERM and SIGINT handler. A stop channel is returned, which is closed when one of these signals are caught. If a second signal is caught, the application is terminated immediately with exit 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