Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool looks up server addresses and manages a pool of IPs
func (*Pool) Desc ¶
Desc returns a friendly description of the last returned server. Example for an IP: 127.0.0.1
Hostname: localhost (127.0.0.1)
TODO: Improve Desc result for SRV records to include the SRV record
func (*Pool) Host ¶
Host returns the DNS hostname for the last returned address. This can be used for server name verification such as with TLS
func (*Pool) IsLast ¶
IsLast returns true if the next call to Next will return the first address in the pool. In other words, if the last call to Next returned the last entry or has never been called
func (*Pool) Next ¶
Next returns the next available IP address from the pool Each time all IPs have been returned, the server is looked up again if necessary and the IP addresses are returned again in order.
func (*Pool) Server ¶
Server returns the server configuration entry the address pool was associated with
func (*Pool) SetRfc2782 ¶
SetRfc2782 enables RFC compliant handling of SRV server entries using the given service name