Documentation ¶
Index ¶
- func GetDefaultGateway(ipv4 bool) (ip net.IP, err error)
- func GetDefaultIP(ipv4 bool, method string) (net.IP, error)
- func GetRequestIP(req *http.Request) string
- func InetAtoN(ip string) int64
- func InetNtoA(ip int64) string
- func IsValidIP(ip string) bool
- func IsValidPort(port int) bool
- func Reachable(protocol string, addr string, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestIP ¶
func IsValidPort ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.