Documentation ¶
Index ¶
Constants ¶
View Source
const ( DomainName = "domain-name" IPv6 = "ipv6" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Domain specifies the dns name DomainName string // IPv6 states whether to fetch ipv6 address instead of ipv4 // if it is false then all addresses are extracted IPv6 *bool }
Config defines the discovery configuration
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery represents the DNS service discovery IP addresses are looked up by querying the default DNS resolver for A and AAAA records associated with the DNS name.
func NewDiscovery ¶
NewDiscovery returns an instance of the DNS discovery provider
func (*Discovery) Deregister ¶
Deregister removes this node from a service discovery directory.
func (*Discovery) DiscoverPeers ¶
DiscoverPeers returns a list of known nodes.
func (*Discovery) Initialize ¶
Initialize initializes the plugin: registers some internal data structures, clients etc.
Click to show internal directories.
Click to hide internal directories.