Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheDNSRecord ¶
CacheDNSRecord add a cached record for the provided name.
func FetchDNSFromCache ¶
FetchDNSFromCache returns a cached addressed for the provided name.
func NewResolverCache ¶
func NewResolverCache() *resolverCache
NewResolverCache caches resolver responses.
Types ¶
type ResolveContext ¶
ResolveContext specifies the resolve function for doing custom DNS lookup.
func NewResolverMap ¶
func NewResolverMap(hostToIP map[string][]string) ResolveContext
NewResolverMap creates resolver with predefined host -> IP map.
Click to show internal directories.
Click to hide internal directories.