Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUsableResponse ¶
IsUsableResponse reports whether a validated DNS response represents a normal resolver outcome. NOERROR includes both answers and valid NODATA; NXDOMAIN is also a useful, authoritative outcome. Resolver errors such as SERVFAIL and REFUSED are transport-valid, but must not win latency scoring.
func ResponseClass ¶
ResponseClass is deliberately based on DNS response semantics rather than answer count alone. It lets the benchmark identify filtered/divergent responses without declaring valid NODATA responses to be transport errors.
func ResponseCodeName ¶
ResponseCodeName returns the conventional DNS response-code name used in reports. Unknown extended or future codes retain their numeric value.
Types ¶
type Factory ¶
Factory creates fresh sessions for cold measurements and one reusable session for warm measurements.
type Session ¶
type Session interface {
Query(ctx context.Context, name string, qtype uint16) (*dns.Msg, error)
Close() error
}
Session represents a transport connection used by a single benchmark worker. A worker serializes calls, which makes TCP and encrypted stream framing deterministic while still allowing different targets to run in parallel.