Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUpstreamResolversNotSet = errors.New("upstream resolvers not set")
Functions ¶
This section is empty.
Types ¶
type Dialer ¶
type Dialer struct {
// contains filtered or unexported fields
}
type Settings ¶
type Settings struct { // UpstreamResolvers is a list of plain DNS upstream resolvers // to use. UpstreamResolvers []provider.Provider // Timeout is the maximum duration to wait for a response from // upstream DNS servers. If left unset, it defaults to // 5 seconds. Timeout time.Duration // IPVersion defines the only IP version to use to connect to // upstream DNS servers. If left unset, it defaults to // "ipv4". IPVersion string // Metrics is the metrics interface to record metric data. // It defaults to a No-Op metrics implementation. Metrics Metrics }
func (*Settings) SetDefaults ¶
func (s *Settings) SetDefaults()
func (*Settings) ToLinesNode ¶
Directories ¶
Path | Synopsis |
---|---|
metrics
|
|
noop
Package noop defines a No-Op metric implementation for DoT.
|
Package noop defines a No-Op metric implementation for DoT. |
prometheus
Package prometheus defines a Prometheus metric implementation for DoT.
|
Package prometheus defines a Prometheus metric implementation for DoT. |
Click to show internal directories.
Click to hide internal directories.