dnssrv

package
Version: v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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 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 Register

func Register() error

Register registers the dns sd subscriber factory

func SubscriberFactory

func SubscriberFactory(cfg *config.Backend) sd.Subscriber

SubscriberFactory builds a DNS_SRV Subscriber with the received config

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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