Documentation ¶
Overview ¶
Package dnssrv provides an Instancer implementation for DNS SRV records.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instancer ¶ added in v0.5.0
type Instancer struct {
// contains filtered or unexported fields
}
Instancer yields instances from the named DNS SRV record. The name is resolved on a fixed schedule. Priorities and weights are ignored.
func NewInstancer ¶ added in v0.5.0
NewInstancer returns a DNS SRV instancer.
func NewInstancerDetailed ¶ added in v0.5.0
func NewInstancerDetailed( name string, refresh *time.Ticker, lookup Lookup, logger log.Logger, ) *Instancer
NewInstancerDetailed is the same as NewInstancer, but allows users to provide an explicit lookup refresh ticker instead of a TTL, and specify the lookup function instead of using net.LookupSRV.
func (*Instancer) Deregister ¶ added in v0.5.0
Deregister implements Instancer.
Click to show internal directories.
Click to hide internal directories.