Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pair ¶
Pair represents a key-value pair of debug info. It is used instead of a map in order to provide a stable output order for metadata.
type Values ¶
type Values []Pair
Values is inspired by [url.Values], but is simplified for this use case:
- Percent-encoding is not used. This keeps IPv6 addresses human-readable and reduces response bloat.
- Keys with empty values are omitted from the encoded output.
- Stable-order iteration is available independent of the syntax, to support TXT record generation, but sorting is avoided. This makes lookups slow, but the lookup methods are only used in the tests.
Click to show internal directories.
Click to hide internal directories.