Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeHostname ¶
NormalizeHostname casts FQDN to canonical representation: no whitespace, no trailing dot, lower case.
Types ¶
type Whitelist ¶
type Whitelist struct {
// contains filtered or unexported fields
}
Whitelist is a set of domain names and suffixes for fast matching
func NewWhitelist ¶
NewWhitelist creates Whitelist from list of domains and suffixes
Click to show internal directories.
Click to hide internal directories.