nrc

package
v5.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	// EnforceOneDotPolicy instructs mustbe.Target* functions to return an error
	// if it looks like the user forgot the trailing dot. This is enforced by
	// the rule, "If a hostname contains any dots (even a single dot), there
	// must be a trailing dot."
	EnforceOneDotPolicy bool

	// SrvWeirdSplit the last field contains multiple fields.
	// Only for use with NewRecordConfigParse() && rtype=="SRV" && len(args) == 2.
	// Some APIs deliver SRV fields as two strings: "priority" and "weight port hostname."
	// This happens often enough to warrant a flag to handle this case.
	// true: last 2 args are combined and sent to NewRecordConfigParse()
	SrvWeirdSplit bool

	// TargetIsFqdnNoDot modifies how RDATA host target fields are parsed.
	// Normally a target host for MX, CNAME, and others, is assumed to be a
	// shortname (no dot) or FQDN (dot). When this flag is set, it is assumed to be a FQDN no matter what.
	// false: ends with ".": FQDN; no dot: shortname.
	// true: ends with ".": FQDN; no dot: FQDN.
	TargetIsFqdnNoDot bool

	// TxtDontParse tells NewRecordConfigParse() that the TXT data is raw bytes, not to be parsed.
	TxtDontParse bool
}

Jump to

Keyboard shortcuts

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