Documentation
¶
Overview ¶
Package icmp implements the ICMP checker and prober.
The ICMP prober sends an ICMP ECHO request and receives a reply from the address the request was sent to.
Valid check format is described as following:
Interval and Timeout should be greater than 0.
Input:
Type Value Description -------- -------------------- ------------------------------ "ICMP" "", "PING", "ECHO" Sends and receives ICMP ECHO
Output:
Type Value Description ----------- ----------------- ------------------------ "TIMEOUT" <not validated> Success is not-timeout
Target:
Type Value Description ----------- ----------------------------------- -------------------------------- "ADDRESS" <valid address (can be hostname)> Address to send the request to
Payload is not required and hence not validated.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker sends an ICMP ECHO request and checks if a reply is returned.
type ProbeResult ¶
type ProbeResult struct { Timeout bool StartTime time.Time Duration time.Duration NumBytesSent int NumBytesReceived int TTL int }
ProbeResult is the result of an ICMP probe.
Click to show internal directories.
Click to hide internal directories.