Documentation ¶
Overview ¶
+build darwin dragonfly freebsd linux netbsd openbsd solaris
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AddHandlerChannel = make(chan func())
AddHandlerChannel is used to add an interrupt handler to the list of handlers to be invoked on SIGINT (Ctrl+C) signals.
View Source
var HandlersDone = make(chan struct{})
HandlersDone is closed after all interrupt handlers run the first time an interrupt is signaled.
View Source
var InterruptChan chan os.Signal
InterruptChan is used to receive SIGINT (Ctrl+C) signals.
InterruptSignals is the list of signals that cause the interrupt
View Source
var ShutdownRequestChan = make(chan struct{})
ShutdownRequestChan is a channel that can receive shutdown requests
Functions ¶
func AddHandler ¶
func AddHandler( handler func())
AddHandler 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.