Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPMap ¶
type IPMap interface { // Get creates an IPSet for this hostname populated with the IPs // discovered by resolving it. Subsequent calls to Get return the // same IPSet. Get(hostname string) *IPSet }
IPMap maps hostnames to IPSets.
type IPSet ¶
IPSet represents an unordered collection of IP addresses for a single host. One IP can be marked as confirmed to be working correctly.
func (*IPSet) Add ¶
Add one or more IP addresses to the set. The hostname can be a domain name or an IP address.
func (*IPSet) Confirmed ¶
Confirmed returns the confirmed IP address, or nil if there is no such address.
func (*IPSet) Disconfirm ¶
Disconfirm sets the confirmed address to nil if the current confirmed address is the provided ip.
Click to show internal directories.
Click to hide internal directories.