Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostPinger ¶
HostPinger is a function that runs the "ping" function using a list of passed arguments. This can be easily switched with a mocked ping function for unit test purposes (see ping_test.go)
type Ping ¶
type Ping struct { // Interval at which to ping (ping -i <INTERVAL>) PingInterval float64 `toml:"ping_interval"` // Number of pings to send (ping -c <COUNT>) Count int // Ping timeout, in seconds. 0 means no timeout (ping -t <TIMEOUT>) Timeout float64 // Interface to send ping from (ping -I <INTERFACE>) Interface string // URLs to ping Urls []string // contains filtered or unexported fields }
func (*Ping) Description ¶
func (*Ping) SampleConfig ¶
Click to show internal directories.
Click to hide internal directories.