yamldb

package
v0.0.0-...-8a3e241 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2015 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(file string) (api.DomainBackend, error)

func TestRecordInsert

func TestRecordInsert(t *testing.T)

func TestRecordList

func TestRecordList(t *testing.T)

Types

type YAMLDomains

type YAMLDomains struct {
	DomainRecords map[string]map[string]api.DNSRecordList
	Domains       map[string]api.DNSDomain
}

func (*YAMLDomains) AddDomain

func (d *YAMLDomains) AddDomain(api.DNSDomain) error

add domain to DB

func (*YAMLDomains) AddRecord

func (d *YAMLDomains) AddRecord(record api.DNSRecord) error

add records to DB

func (*YAMLDomains) List

return all records for domain (For AXFR-type requests)

func (*YAMLDomains) Lookup

return records for query

func (*YAMLDomains) ParseDNS

func (d *YAMLDomains) ParseDNS(data io.Reader) error

Jump to

Keyboard shortcuts

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