config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: EUPL-1.2 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Zones: []ZoneConfig{},
}
View Source
var DefaultTSIGConfig = TSIGConfig{
	Fudge: time.Minute * 5,
}
View Source
var DefaultTimeoutConfig = TimeoutConfig{
	Dial: time.Second * 3,
	Read: time.Second * 10,
}
View Source
var DefaultZoneConfig = ZoneConfig{
	Period: time.Minute * 10,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Zones []ZoneConfig `config:"zones"`
}

type NameServerConfig

type NameServerConfig struct {
	Hostname string      `config:"hostname"`
	TSIG     *TSIGConfig `config:"tsig"`
}

type TSIGConfig

type TSIGConfig struct {
	Secret    string        `config:"secret"`
	Algorithm string        `config:"algorithm"`
	Fudge     time.Duration `config:"fudge"`
}

type TimeoutConfig

type TimeoutConfig struct {
	Dial time.Duration `config:"dial"`
	Read time.Duration `config:"read"`
}

type ZoneConfig

type ZoneConfig struct {
	FQDN        string             `config:"fqdn"`
	Bind        string             `config:"bind"`
	NameServers []NameServerConfig `config:"nameservers"`
	ZoneFile    string             `config:"zonefile"`
	Timeouts    *TimeoutConfig     `config:"timeouts"`
	Period      time.Duration      `config:"period"`
}

Jump to

Keyboard shortcuts

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