Documentation ¶
Overview ¶
Package interrupt allows to handle interrupts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ShutdownChannel = make(chan error)
ShutdownChannel is used to signal that shutdown is in progress.
Functions ¶
func AddInterruptHandler ¶
func AddInterruptHandler(handler func())
AddInterruptHandler adds a handler to call when a SIGINT (Ctrl+C) is received.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.