Documentation ¶
Overview ¶
Package dnssrv defines some implementations for a dns based service discovery
Index ¶
Constants ¶
View Source
const Namespace = "dns"
Namespace is the key for the dns sd module
Variables ¶
View Source
var ( // TTL is the duration of the cached data TTL = 30 * time.Second // DefaultLookup id the function for the DNS resolution DefaultLookup = net.LookupSRV )
Functions ¶
func NewDetailed ¶
func NewDetailed(name string, lookup lookup, ttl time.Duration) sd.Subscriber
NewDetailed creates a DNS subscriber with the received values
func SubscriberFactory ¶
func SubscriberFactory(cfg *config.Backend) sd.Subscriber
SubscriberFactory builds a DNS_SRV Subscriber with the received config
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.