Documentation ¶
Index ¶
Constants ¶
View Source
const ( SchemeTCP = "tcp" SchemeUDP = "udp" )
Variables ¶
This section is empty.
Functions ¶
func Ping ¶
func Ping(opts *PingOptions) error
Types ¶
type PingOptions ¶
type PingOptions struct { // Raw URL that will be parsed RawURL string // Override the parsed URL scheme with this value Scheme string // Duration after which the connectivity check will fail Timeout time.Duration // Enable to allow IPv6 IP addresses to be used in connectivity check AllowIPv6 bool }
Click to show internal directories.
Click to hide internal directories.