Documentation
¶
Overview ¶
netstatus provides utility functions for querying several aspects of the network/host, especially as pertains to monitoring.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanConnect ¶
CanConnect tests whether a connection can be made to a given host on its given port using protocol ("TCP"|"UDP")
func GetInterfaces ¶
GetInterfaces returns a list of network interfaces and handles any associated error. Just for DRY.
func InterfaceIPs ¶
InterfaceIPs gets all the associated IP addresses of a given interface. If the interface can't be found, it will return nil.
func PortOpen ¶
PortOpen reports whether or not the given (decimal) port is open Its protocol argument can only be one of: "tcp" | "udp"
func Resolvable ¶
Resolvable checks if the given host can be resolved on the TCP and UDP nets
Types ¶
This section is empty.