Documentation ¶
Overview ¶
Package domain parses DNS domain names.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortDomains ¶
func SortDomains(s []Domain)
SortDomains sorts a list of domains according to their ASCII representations.
func StringToASCII ¶ added in v1.7.2
StringToASCII normalizes a domain with best efforts, ignoring errors.
Types ¶
type Domain ¶
type Domain interface { // DNSNameASCII gives a name suitable for accessing the Cloudflare API DNSNameASCII() string // Describe gives the most human-readable domain name that is still unambiguous Describe() string // Zones iterates from the smallest possible zone to largest ones (the root). Zones(yield func(ZoneNameASCII string) bool) }
A Domain represents a domain name to update.
type FQDN ¶
type FQDN string
FQDN is a fully qualified domain in its ASCII form.
func (FQDN) DNSNameASCII ¶
DNSNameASCII retruns the ASCII form of the FQDN.
type Wildcard ¶
type Wildcard string
Wildcard is a fully qualified zone name in its ASCII form, represnting the wildcard domain name under the zone. For example, Wildcard("example.org") represents *.example.org.
func (Wildcard) DNSNameASCII ¶
DNSNameASCII retruns the ASCII form of the wildcard domain.
Click to show internal directories.
Click to hide internal directories.