Documentation
¶
Overview ¶
Package sessionresolver contains the resolver used by the session. This resolver uses Cloudflare DoH by default and falls back on the system provided resolver if Cloudflare DoH is not working.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
Primary httptransport.DNSClient
PrimaryFailure *atomicx.Int64
Fallback httptransport.DNSClient
FallbackFailure *atomicx.Int64
}
Resolver is the session resolver.
func (*Resolver) CloseIdleConnections ¶
func (r *Resolver) CloseIdleConnections()
CloseIdleConnections closes the idle connections, if any
func (*Resolver) LookupHost ¶
LookupHost implements Resolver.LookupHost
Click to show internal directories.
Click to hide internal directories.