dnssrv

package
v0.0.0-...-7f749bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package dnssrv defines some implementations for a dns based service discovery

Index

Constants

This section is empty.

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 New

func New(name string) sd.Subscriber

New creates a DNS subscriber with the default values

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL