Documentation ¶
Index ¶
- func CheckIpv4Validity(IPString string) bool
- func CheckIpv6Validity(IPString string) bool
- func GetCityByIp(ip string) string
- func GetClientIP(r *http.Request) (ip string)
- func GetFirstAddressOf(name string) (string, error)
- func GetInternalIP() string
- func GetLocalIP() (string, error)
- func GetMxrr(domain string) (isMx bool, mxs []*net.MX, err error)
- func GetOutboundIP() (string, error)
- func HTTPBuildQuery(pairs map[string]string) string
- func HostAddress(host string, port int) string
- func HostAddress2(host string, port string) string
- func HostPort(addr string) (string, string, error)
- func IP2long(ipAddr string) (uint32, error)
- func IsPrivateIP(ipAddr string) bool
- func IsRedirect(resp *http.Response) bool
- func IsSameAddr(a1, a2 net.Addr) bool
- func Long2ip(ipLong uint32) string
- func ParseURL(uri string) *url.URL
- func WSHostAddress(host string, port int, path string) string
- func WSHostAddress2(host string, port string, path string) string
- func WSSHostAddress(host string, port int, path string) string
- func WSSHostAddress2(host string, port string, path string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIpv4Validity ¶
func CheckIpv6Validity ¶
func GetCityByIp ¶
func GetFirstAddressOf ¶
GetFirstAddressOf returns the first IPv4 address of the supplied interface name.
func GetLocalIP ¶
func GetMxrr ¶
GetMxrr Get MX records corresponding to a given Internet host name Returns TRUE if any records are found; returns FALSE if no records were found or if an error occurred
func GetOutboundIP ¶
func HTTPBuildQuery ¶
HTTPBuildQuery Generates a URL-encoded query string from the associative map
func HostAddress ¶
func HostAddress2 ¶
func IP2long ¶
IP2long converts a string containing an (IPv4) Internet Protocol dotted address into a long integer
func IsPrivateIP ¶
func IsRedirect ¶ added in v0.0.2
func IsSameAddr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.