signal

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 5 Imported by: 2

README

SIGNAL

The idea behind the signal package is a helper to handle interrupts (Ctrl-C) and pass shutdown signals as well as a global instance to handle graceful shutdowns.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultStopSignals = []os.Signal{syscall.SIGINT, syscall.SIGTERM}

DefaultStopSignals is the SIGINT and SIGTERM signals

View Source
var Stop = NewStop()

Stop is the global stop instance if you wish to use.

Functions

func NewStop

func NewStop() *stop

NewStop creates a new stop instance

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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