Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatHttpTime ¶
Types ¶
type NormalizedHostname ¶
type NormalizedHostname string
NormalizedHostname would be "EXAMPLEORG" for "example.org".
func NormalizeHostname ¶
func NormalizeHostname(hostname string) NormalizedHostname
func NormalizeURLHostname ¶
func NormalizeURLHostname(u *url.URL) NormalizedHostname
NormalizeURLHostname returns the url's hostname, normalized for TTL matches. So https://example.org/foo would become "EXAMPLEORG", etc.
func (NormalizedHostname) Reverse ¶
func (h NormalizedHostname) Reverse() NormalizedHostname
Reverse reverses the hostname string. Note that 'reversing a string' is really confusing because of glyphs, but since we are just dealing with hostnames, and for bytewise indexing, we can just reverse bytes.
Click to show internal directories.
Click to hide internal directories.