zones

package
v0.0.0-...-fb72fe2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TypeDYNA uint16 = 0xFF01
View Source
const TypeGROUP uint16 = 0xFF00

Variables

This section is empty.

Functions

func NewDYNA

func NewDYNA() dns.PrivateRdata

func NewGROUP

func NewGROUP(log *logrus.Entry) func() dns.PrivateRdata

func NewZoneSetItem

func NewZoneSetItem() map[uint16][]ZoneEntry

Types

type DYNA

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

func (*DYNA) Copy

func (rd *DYNA) Copy(dest dns.PrivateRdata) error

func (*DYNA) Len

func (rd *DYNA) Len() int

func (*DYNA) Pack

func (rd *DYNA) Pack(buf []byte) (int, error)

func (*DYNA) Parse

func (rd *DYNA) Parse(txt []string) error

func (*DYNA) String

func (rd *DYNA) String() string

func (*DYNA) Unpack

func (rd *DYNA) Unpack(buf []byte) (int, error)

type GROUP

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

func (*GROUP) Copy

func (rd *GROUP) Copy(dest dns.PrivateRdata) error

func (*GROUP) Len

func (rd *GROUP) Len() int

func (*GROUP) Pack

func (rd *GROUP) Pack(buf []byte) (int, error)

func (*GROUP) Parse

func (rd *GROUP) Parse(txt []string) error

func (*GROUP) String

func (rd *GROUP) String() string

func (*GROUP) Unpack

func (rd *GROUP) Unpack(buf []byte) (int, error)

type ZoneEntry

type ZoneEntry struct {
	Kind ZoneEntryType
	RR   *dns.RR
}

type ZoneEntryType

type ZoneEntryType uint8
const (
	ZoneEntryTypeRR ZoneEntryType = iota
	ZoneEntryTypeWeighted
	ZoneEntryTypeNearest
	ZoneEntryTypeGeo
)

type ZoneSet

type ZoneSet map[string]map[uint16][]ZoneEntry // Map from strings to maps from RR_types to ZoneEntry lists

func LoadZones

func LoadZones(path string) (ZoneSet, error)

func NewZoneSet

func NewZoneSet() ZoneSet

func (ZoneSet) PrintToLog

func (z ZoneSet) PrintToLog(lg *logrus.Entry)

Jump to

Keyboard shortcuts

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