Documentation ¶
Index ¶
- func Hostname() string
- func IP2Int(ip net.IP) uint32
- func IPIntToString(ipInt int) string
- func Int2IP(nn uint32) net.IP
- func IsPrivateIPv4(ip net.IP) bool
- func LocalIP(optionalIName ...string) string
- func Lower16BitPrivateIP() (uint16, error)
- func PrivateIP2Int() uint32
- func PrivateIPv4() (net.IP, error)
- func StringIpToInt(ipstring string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPrivateIPv4 ¶
IsPrivateIPv4 returns if an ip address is in IPv4 and is private ip
func LocalIP ¶
LocalIP get public loc ip of network. get env BINDHOSTIP first using net interface name first if provided. or it will using env INAME using eth0 as default.
func Lower16BitPrivateIP ¶
func StringIpToInt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.