Documentation ¶
Index ¶
- Variables
- func FakeIPEnabled() bool
- func FindHostByIP(ip net.IP) (string, bool)
- func IsExistFakeIP(ip net.IP) bool
- func IsFakeIP(ip net.IP) bool
- func MappingEnabled() bool
- func ResolveIP(host string) (net.IP, error)
- func ResolveIPv4(host string) (net.IP, error)
- func ResolveIPv6(host string) (net.IP, error)
- type Enhancer
- type Resolver
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultResolver aim to resolve ip DefaultResolver Resolver // DisableIPv6 means don't resolve ipv6 host // default value is true DisableIPv6 = true // DefaultHosts aim to resolve hosts DefaultHosts = trie.New() )
Functions ¶
func FakeIPEnabled ¶
func FakeIPEnabled() bool
func IsExistFakeIP ¶
func MappingEnabled ¶
func MappingEnabled() bool
func ResolveIPv4 ¶
ResolveIPv4 with a host, return ipv4
Types ¶
Click to show internal directories.
Click to hide internal directories.