dns

package
v0.0.0-...-fd2add7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nameserver

type Nameserver interface {
	Scrub()
	Set(rr string) error
	Unset(name string)
	Peek() Stat
	X() circuit.X
}

func MakeNameserver

func MakeNameserver(addr string) (_ Nameserver, err error)

type Stat

type Stat struct {
	Address string              `json:"addr"`
	Records map[string][]string `json:"records"`
}

func (Stat) String

func (s Stat) String() string

type XNameserver

type XNameserver struct {
	Nameserver
}

X

func (XNameserver) Set

func (x XNameserver) Set(rr string) error

type YNameserver

type YNameserver struct {
	X circuit.X
}

Y

func (YNameserver) Peek

func (y YNameserver) Peek() Stat

func (YNameserver) Scrub

func (y YNameserver) Scrub()

func (YNameserver) Set

func (y YNameserver) Set(rr string) error

func (YNameserver) Unset

func (y YNameserver) Unset(name string)

Jump to

Keyboard shortcuts

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