shutdown

package
v0.3.37 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GracefulStop

func GracefulStop(stop func())

GracefulStop handles signal and graceful shutdown by executing callback function when signal is received callback is called followed after by os.Exit(0), it is responsibility of callback to handle timeout if second signal is received will terminate process by a call to os.Exit(1)

Types

This section is empty.

Jump to

Keyboard shortcuts

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