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 -W <TIMEOUT>) Timeout float64 // Ping deadline, in seconds. 0 means no deadline. (ping -w <DEADLINE>) Deadline int // Interface or source address to send ping from (ping -I/-S <INTERFACE/SRC_ADDR>) Interface string // URLs to ping Urls []string // Ping executable binary Binary string // Arguments for ping command. // when `Arguments` is not empty, other options (ping_interval, timeout, etc) will be ignored Arguments []string // contains filtered or unexported fields }
func (*Ping) Description ¶
func (*Ping) SampleConfig ¶
Click to show internal directories.
Click to hide internal directories.