Documentation ¶
Index ¶
Constants ¶
View Source
const ( PingPayload = "HELLO-R-U-THERE" PingMaxReadBuffer = 1500 )
Variables ¶
View Source
var (
ErrPingUnknown = errors.New("unknown error when pinging")
)
Functions ¶
This section is empty.
Types ¶
type PingOption ¶
type PingOption func(p *PingRequest)
func PingCount ¶
func PingCount(count int) PingOption
func PingInfinity ¶
func PingInfinity() PingOption
func PingTimeout ¶
func PingTimeout(timeout time.Duration) PingOption
type PingRequest ¶
type PingRequest struct {
// contains filtered or unexported fields
}
type PingResult ¶
type PingResult struct { Source string SourceIP net.IP PeerAddr net.Addr Type *ipv4.ICMPType Sequence int // contains filtered or unexported fields }
func (*PingResult) Error ¶
func (r *PingResult) Error() error
func (*PingResult) IsOk ¶
func (r *PingResult) IsOk() bool
Click to show internal directories.
Click to hide internal directories.