Documentation ¶
Overview ¶
Package signals provides a generic signal handler which will call simple functions based on a mapping from signal to function.
The signal handler will select over a set of signal channels being buffered by 1 signal. This means that a signal will only be lost of there's another similar signal pending.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunSignalHandler ¶
func RunSignalHandler(m Mappings)
RunSignalHandler spawns a go-routine which will call the provided Actions when receiving the corresponding signals.
Types ¶
Click to show internal directories.
Click to hide internal directories.