service

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 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