Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpStatusCode ¶
HttpStatusCode return http status code of url
Types ¶
type Network ¶
type Network struct { LocalIP net.IP DNS []string SubnetMask net.IP DefaultGateway net.IP DefaultGatewayHardwareAddress net.HardwareAddr InterfaceName string HardwareAddress net.HardwareAddr Suffix string Interface *net.Interface }
Network is the interface which store network configuration data
func RefreshConfig ¶
RefreshConfig refetch network configuration
type PingResult ¶
PingResult ping result struct
func Ping ¶
func Ping(host string, pings int) (PingResult, error)
Ping ping destination return the info
func (PingResult) String ¶
func (result PingResult) String() string
String return ping result in string
Click to show internal directories.
Click to hide internal directories.