Discover Packages
github.com/tadasv/cloudprober
targets
resolver
package
Version:
v0.0.0-...-eff70b3
Opens a new window with list of versions in this module.
Published: Apr 11, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package resolver provides a caching, non-blocking DNS resolver. All requests
for cached resources are returned immediately and if cache has expired, an
offline goroutine is fired to update it.
Resolver provides an asynchronous caching DNS resolver.
New returns a new Resolver.
Resolve returns IP address for a name. It's same as ResolveWithMaxAge, except for that it uses
DefaultMaxAge for validating the cache record.
ResolveWithMaxAge returns IP address for a name, issuing an update call for the cache record if
it's older than the argument maxAge.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.