Reorganize config file.

This commit is contained in:
Eugene Bujak 2018-09-19 15:51:44 +03:00
parent b8213bf88a
commit ba56d6c01d
1 changed files with 6 additions and 6 deletions

View File

@ -38,20 +38,20 @@ type coreDNSConfig struct {
FilteringEnabled bool `yaml:"filtering_enabled"` FilteringEnabled bool `yaml:"filtering_enabled"`
SafeBrowsingEnabled bool `yaml:"safebrowsing_enabled"` SafeBrowsingEnabled bool `yaml:"safebrowsing_enabled"`
SafeSearchEnabled bool `yaml:"safesearch_enabled"` SafeSearchEnabled bool `yaml:"safesearch_enabled"`
QueryLogEnabled bool `yaml:"querylog_enabled"`
ParentalEnabled bool `yaml:"parental_enabled"` ParentalEnabled bool `yaml:"parental_enabled"`
ParentalSensitivity int `yaml:"parental_sensitivity"` ParentalSensitivity int `yaml:"parental_sensitivity"`
Pprof string `yaml:"pprof"` QueryLogEnabled bool `yaml:"querylog_enabled"`
Cache string `yaml:"cache"` Pprof string `yaml:"-"`
Prometheus string `yaml:"prometheus"` Cache string `yaml:"-"`
Prometheus string `yaml:"-"`
UpstreamDNS []string `yaml:"upstream_dns"` UpstreamDNS []string `yaml:"upstream_dns"`
} }
type filter struct { type filter struct {
Enabled bool `json:"enabled"`
URL string `json:"url"` URL string `json:"url"`
RulesCount int `json:"rules_count" yaml:"-"`
Name string `json:"name" yaml:"-"` Name string `json:"name" yaml:"-"`
Enabled bool `json:"enabled"`
RulesCount int `json:"rules_count" yaml:"-"`
contents []byte contents []byte
LastUpdated time.Time `json:"last_updated" yaml:"-"` LastUpdated time.Time `json:"last_updated" yaml:"-"`
} }