Documentation ¶
Index ¶
- func CheckPID(fname string, logger *log.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 *log.Logger)
- func UnixSignals(sigC chan struct{}, logger *log.Logger)
- type KillChannels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUpAll ¶
func CleanUpAll( killC *KillChannels, receiverOnlyMode bool, senderOnlyMode bool, resolveDNS bool, conn *ip.Conn, PIDPath string, sr metrics.Reporter, logger *log.Logger, )
CleanUpAll conducts a clean exit.
func CleanUpRefresh ¶
func CleanUpRefresh(killC *KillChannels, receiverOnlyMode bool, senderOnlyMode bool, resolveDNS 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.