defaults

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 21 Imported by: 0

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 Register

func Register()

Register registers the default chain, in order.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL