Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAllFailed = errors.New("all upstreams failed")
Functions ¶
Types ¶
type Upstream ¶
type Upstream interface { // Exchange sends q to the upstream and waits for response. // If any error occurs. Implements must return a nil msg with a non nil error. // Otherwise, Implements must a msg with nil error. Exchange(ctx context.Context, q *dns.Msg) (*dns.Msg, error) // Trusted indicates whether this Upstream is trusted/reliable. // If true, responses from this Upstream will be accepted without checking its rcode. Trusted() bool Address() string }
Click to show internal directories.
Click to hide internal directories.