Documentation ¶
Overview ¶
Package echo implements an ICMPv4/6 echo client for performing ping operations on destination hosts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client sends ICMPv4/6 echo requests to perform ping operations.
type Response ¶
type Response struct { // Duration reports how much time elapsed during the echo request and // response cycle. Duration time.Duration // Ping and Pong are the raw ICMP ping messages sent by the Client and // received from the target host. Ping, Pong *icmp.Echo // IP is the IPv4/6 address of the target host. IP netip.Addr }
A Response is the result of a Client.Ping operation.
Click to show internal directories.
Click to hide internal directories.