Documentation ¶
Overview ¶
Package dnscache exports DNS caching utilities for http.DialContexts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialContext ¶ added in v0.23.0
DialContext returns an http.DialContext with DNS caching. Cached DNS entries are refreshed by a ticker, with the given TTL as the number of seconds to wait before refreshing the cache.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.