Documentation
¶
Overview ¶
Package defaults holds SDNS's default middleware chain, in its default order.
It is a package rather than an init in main so that everything which needs the real chain can ask for it: the binary, the benchmarks, a harness. When this lived in main it could not be imported, so each of those kept a list of its own — and they drifted, which is worse than duplication because a benchmark that quietly measures five handlers fewer than production still reports a number.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUpTo ¶
func RegisterUpTo(stop string)
RegisterUpTo registers the chain up to but not including name; an empty name registers all of it.
It exists for the harnesses that replace the tail — a benchmark standing a stub in for the resolver — so that what runs ahead of the stub is the real chain rather than a hand-kept approximation of it.
Types ¶
This section is empty.