package
2.12.0+incompatible
Repository: https://github.com/adguardteam/adguarddns.git
Documentation: pkg.go.dev

# Functions

NewCloner returns a standard dnsmsg.Cloner for tests.
NewConstructor returns a standard *dnsmsg.Constructor for tests, using [FilteredResponseTTL] as the TTL for filtered responses.
NewConstructorWithTTL returns a standard *dnsmsg.Constructor for tests, using ttl as the TTL for filtered responses.
NewErrorCollector returns a new *ErrorCollector all methods of which panic.
NewGeoIP returns a new *GeoIP all methods of which panic.
NewProfileDB returns a new *ProfileDB all methods of which panic.
NewRateLimit returns a new *RateLimit all methods of which panic.
NewSDEConfig returns a standard *dnsmsg.StructuredDNSErrorsConfig for tests.
NewTestPrometheusRegisterer returns a [prometheus.Registerer] implementation that does nothing and returns nil from [prometheus.Registerer.Register] and true from [prometheus.Registerer.Unregister].

# Constants

FilteredResponseTTL is the common filtering response TTL for tests.
FilteredResponseTTLSec is the common filtering response TTL for tests, as a number to simplify message creation.
SDEText is a test Structured DNS Error text.

# Structs

AccessManager is a [access.Interface] for tests.
Authenticator is an [agdpasswd.Authenticator] for tests.
BillStatRecorder is a [billstat.Recorder] for tests.
BillStatUploader is a [billstat.Uploader] for tests.
DeviceFinder is an [agd.DeviceFinder] for tests.
DNSCheck is a [dnscheck.Interface] for tests.
DNSDB is a [dnsdb.Interface] for tests.
ErrorCollector is an [errcoll.Interface] for tests.
Filter is a [filter.Interface] for tests.
FilterStorage is a [filter.Storage] for tests.
GeoIP is a [geoip.Interface] for tests.
HashMatcher is a [filter.HashMatcher] for tests.
ListenConfig is a [netext.ListenConfig] for tests.
ProfileDB is a [profiledb.Interface] for tests.
ProfileStorage is a [profiledb.Storage] implementation for tests.
PrometheusRegisterer is a [prometheus.Registerer] implementation for tests.
QueryLog is a [querylog.Interface] for tests.
RateLimit is a [ratelimit.Interface] for tests.
RemoteKV is an [remotekv.Interface] implementation for tests.
RuleStat is a [rulestat.Interface] for tests.