Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoReadyExitedNormally = errors.New("no ready exited normally")
View Source
var NoReadyRunner = ifrit.RunFunc(func(sigChan <-chan os.Signal, ready chan<- struct{}) error { return NoReadyExitedNormally })
NoReadyRunner exits without closing the ready chan
View Source
var PingerExitedFromPing = errors.New("pinger exited with a ping")
View Source
var PingerExitedFromSignal = errors.New("pinger exited with a signal")
Functions ¶
This section is empty.
Types ¶
type SignalRecoder ¶
SignalRecoder records all signals received, and exits on a set of signals.
func NewSignalRecorder ¶
func NewSignalRecorder(exitSignals ...os.Signal) *SignalRecoder
func (*SignalRecoder) ReceivedSignals ¶
func (r *SignalRecoder) ReceivedSignals() []os.Signal
Click to show internal directories.
Click to hide internal directories.