From ba56d6c01d7b241829d3115e1ce87241737cf571 Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Wed, 19 Sep 2018 15:51:44 +0300 Subject: [PATCH] Reorganize config file. --- config.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config.go b/config.go index 02c0d147..ee3d91df 100644 --- a/config.go +++ b/config.go @@ -38,20 +38,20 @@ type coreDNSConfig struct { FilteringEnabled bool `yaml:"filtering_enabled"` SafeBrowsingEnabled bool `yaml:"safebrowsing_enabled"` SafeSearchEnabled bool `yaml:"safesearch_enabled"` - QueryLogEnabled bool `yaml:"querylog_enabled"` ParentalEnabled bool `yaml:"parental_enabled"` ParentalSensitivity int `yaml:"parental_sensitivity"` - Pprof string `yaml:"pprof"` - Cache string `yaml:"cache"` - Prometheus string `yaml:"prometheus"` + QueryLogEnabled bool `yaml:"querylog_enabled"` + Pprof string `yaml:"-"` + Cache string `yaml:"-"` + Prometheus string `yaml:"-"` UpstreamDNS []string `yaml:"upstream_dns"` } type filter struct { - Enabled bool `json:"enabled"` URL string `json:"url"` - RulesCount int `json:"rules_count" yaml:"-"` Name string `json:"name" yaml:"-"` + Enabled bool `json:"enabled"` + RulesCount int `json:"rules_count" yaml:"-"` contents []byte LastUpdated time.Time `json:"last_updated" yaml:"-"` }