Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockingConfig ¶
type BlockingConfig struct {
BlackLists map[string][]string `yaml:"blackLists"`
WhiteLists map[string][]string `yaml:"whiteLists"`
ClientGroupsBlock map[string][]string `yaml:"clientGroupsBlock"`
Global map[string]bool `yaml:"global"`
BlockType string `yaml:"blockType"`
RefreshPeriod int `yaml:"refreshPeriod"`
}
type CachingConfig ¶
type ClientLookupConfig ¶
type CnameConfig ¶
type Config ¶
type Config struct {
Upstream UpstreamConfig `yaml:"upstream"`
CustomDNS CustomDNSConfig `yaml:"customDNS"`
Conditional ConditionalUpstreamConfig `yaml:"conditional"`
Blocking BlockingConfig `yaml:"blocking"`
ClientLookup ClientLookupConfig `yaml:"clientLookup"`
Caching CachingConfig `yaml:"caching"`
QueryLog QueryLogConfig `yaml:"queryLog"`
Prometheus PrometheusConfig `yaml:"prometheus"`
LogFormat string `yaml:"logFormat"`
LogLevel string `yaml:"logLevel"`
Port uint16 `yaml:"port"`
HTTPPort uint16 `yaml:"httpPort"`
HTTPSPort uint16 `yaml:"httpsPort"`
CertFile string `yaml:"httpsCertFile"`
KeyFile string `yaml:"httpsKeyFile"`
BootstrapDNS Upstream `yaml:"bootstrapDns"`
Cname CnameConfig `yaml:"cname"`
}
main configuration
type CustomDNSConfig ¶
type PrometheusConfig ¶
PrometheusConfig contains the config values for prometheus
type QueryLogConfig ¶
type Upstream ¶
Upstream is the definition of external DNS server
func ParseUpstream ¶
ParseUpstream creates new Upstream from passed string in format net:host[:port][/path]
func (*Upstream) UnmarshalYAML ¶
type UpstreamConfig ¶
type UpstreamConfig struct {
ExternalResolvers []Upstream `yaml:"externalResolvers"`
}
Click to show internal directories.
Click to hide internal directories.