Documentation ¶
Overview ¶
Package discodns contains Rafty Discoverers which leverage the use of DNS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SRVDiscoverer ¶
type SRVDiscoverer struct {
// contains filtered or unexported fields
}
SRVDiscoverer is a Rafty discoverer which leverages the use of DNS and SRV records.
func NewSRVDiscoverer ¶
func NewSRVDiscoverer(srvRecord string, options ...SRVOption) (*SRVDiscoverer, error)
func (*SRVDiscoverer) GetServers ¶
func (d *SRVDiscoverer) GetServers() []raft.Server
func (*SRVDiscoverer) NewServers ¶
func (d *SRVDiscoverer) NewServers() chan struct{}
type SRVOption ¶
type SRVOption func(*SRVDiscoverer) error
func Logger ¶
func Logger(logger interfaces.Logger) SRVOption
func Nameserver ¶
Click to show internal directories.
Click to hide internal directories.