Documentation
¶
Overview ¶
Package sessionresolver contains the resolver used by the session. This resolver uses Powerdns DoH by default and falls back on the system provided resolver if Powerdns 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 netx.DNSClient
PrimaryFailure *atomicx.Int64
Fallback netx.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.