Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProxyEnvVar is the environment variable that contains the proxy details ProxyEnvVar string = "HTTP_PROXY" //Nameserver is the nameserver to use Nameserver string = "8.8.4.4:53" // DialerTimeout is the default timeout to use for the net dialer DialerTimeout time.Duration = time.Millisecond * time.Duration(10000) )
Variables ¶
This section is empty.
Functions ¶
func NewHttpClient ¶
NewHttpClient returns an initialized HTTP Client that uses an external nameserver to help avoid negative caching and if detected will make use of any proxy found in the environment
func NewResolver ¶
NewResolver returns an initialized Resolver that uses an external nameserver to help avoid negative caching
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.