dns

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Type used in config.
	Type = "dns"
)

Variables

This section is empty.

Functions

func New

Entry point to start resolving a new DNS

Types

type Dnsr

type Dnsr struct {
	// contains filtered or unexported fields
}

func (*Dnsr) Close

func (d *Dnsr) Close()

Close stops the recolver

func (*Dnsr) GetEndPoints

func (d *Dnsr) GetEndPoints() []string

GetEndPoints Resolves to ip address with a dns_test

func (*Dnsr) Latest

func (d *Dnsr) Latest() []string

Latest returns the latest when watcher triggers a refresh

func (*Dnsr) Refresh

func (d *Dnsr) Refresh() <-chan bool

Refresh tells when to refresh the data

func (*Dnsr) Watch

func (d *Dnsr) Watch()

`A` records in the dns should be the same order and comparison can be as simple as `==` Watch updates latest on dnsr and triggers a bool chan for refresh.

Jump to

Keyboard shortcuts

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