MCPcopy
hub / github.com/AdguardTeam/dnsproxy / UpstreamResolver

Struct UpstreamResolver

upstream/resolver.go:40–43  ·  view source on GitHub ↗

UpstreamResolver is a wrapper around Upstream that implements the [bootstrap.Resolver] interface.

Source from the content-addressed store, hash-verified

38// UpstreamResolver is a wrapper around Upstream that implements the
39// [bootstrap.Resolver] interface.
40type UpstreamResolver struct {
41 // Upstream is used for lookups. It must not be nil.
42 Upstream
43}
44
45// NewUpstreamResolver creates an upstream that can be used as bootstrap
46// [Resolver]. resolverAddress format is the same as in the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected