Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LocateConfigFile ¶
func LocateConfigFile() string
LocateConfigFile will attempt to locate a config file based on common locations
Types ¶
type Config ¶
type Config struct { DNS DNS `toml:"dns"` SubDomain map[string]Domain `toml:"subdomain"` Static map[string]Domain `toml:"static"` }
Config is the main configuration object
type DNS ¶
type DNS struct { Port int `toml:"port"` Protocol string `toml:"protocol"` Domain *Domain `toml:"domain"` Soa *Soa `toml:"soa"` Ns *Ns `toml:"ns"` }
DNS is a the toplevel collection of times returned when the config is parsed
type Domain ¶
type Domain struct { Domain string `toml:"domain"` ReverseDomain string `toml:"reverse_domain"` Prefix string `toml:"prefix"` Mask int `toml:"mask"` ResponseType string `toml:"response_type"` }
Domain is the structure used to represent domain configurations in the config file
type Ns ¶
type Ns struct {
Servers []string `toml:"servers"`
}
Ns is a list of Nameservers returned when an NS record is returned
Click to show internal directories.
Click to hide internal directories.