Documentation ¶
Index ¶
- func CheckPID(fname string, logger zap.Logger) error
- func CleanUpAll(killC *KillChannels, receiverOnlyMode bool, senderOnlyMode bool, ...)
- func CleanUpRefresh(killC *KillChannels, receiverOnlyMode bool, senderOnlyMode bool)
- func PrintBanner()
- func RemovePID(fname string, logger zap.Logger)
- func UnixSignals(sigC chan struct{}, logger zap.Logger)
- type KillChannels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUpAll ¶
func CleanUpAll( killC *KillChannels, receiverOnlyMode bool, senderOnlyMode bool, PIDPath string, sr metrics.Reporter, logger zap.Logger, )
CleanUpAll conducts a clean exit.
func CleanUpRefresh ¶
func CleanUpRefresh(killC *KillChannels, receiverOnlyMode bool, senderOnlyMode bool)
CleanUpRefresh removes state of past refresh.
func UnixSignals ¶
UnixSignals handles the UNIX signals received.
Types ¶
type KillChannels ¶
type KillChannels struct { Receiver chan struct{} Echo chan struct{} Collector chan struct{} DNSRefresh chan struct{} }
KillChannels includes all channels to tell goroutines to terminate.
Click to show internal directories.
Click to hide internal directories.