package
0.4.33
Repository: https://github.com/p9c/pod.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddHandler adds a handler to call when a SIGINT (Ctrl+C) is received.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GoroutineDump returns a string with the current goroutine dump in order to show what's going on in case of timeout.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Listener listens for interrupt signals, registers interrupt callbacks, and responds to custom shutdown signals as required.
Request programmatically requests a shutdown.
Requested returns true if an interrupt has been requested.
RequestRestart sets the reset flag and requests a restart.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

AddHandlerChan is used to add an interrupt handler to the list of handlers to be invoked on SIGINT (Ctrl+C) signals.
Chan is used to receive SIGINT (Ctrl+C) signals.
No description provided by the author
HandlersDone is closed after all interrupt handlers run the first time an interrupt is signaled.
= true.
ShutdownRequestChan is a channel that can receive shutdown requests.
Signals is the list of signals that cause the interrupt.

# Structs

No description provided by the author