gracefulshutdown

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package gracefulshutdown implements a simple library for enabling app-level graceful shutdown on receiving shutdown OS signals like SIGTERM and SIGINT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(handler func() error)

Enable enables app-level graceful shutdown and invokes the given handler once graceful shutdown is triggerred. Note that Enable can ONLY be called once. All following calls will be ineffective.

Types

This section is empty.

Jump to

Keyboard shortcuts

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