From c369f615b0b53471a9f6d214e847bcaa1703ea5a Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 17 Oct 2021 13:02:48 +0200 Subject: Allow to specify path to the cache directly in the config file --- pkg/config/config.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/config/config.go') diff --git a/pkg/config/config.go b/pkg/config/config.go index 231ce9e..32f4a71 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -17,6 +17,7 @@ type Map map[string]interface{} // GlobalOptions are not feed specific type GlobalOptions struct { + Cache string `yaml:"cache"` Timeout int `yaml:"timeout"` DefaultEmail string `yaml:"default-email"` Target Url `yaml:"target"` @@ -26,6 +27,7 @@ type GlobalOptions struct { } var DefaultGlobalOptions = GlobalOptions{ + Cache: "feed.cache", Timeout: 30, MaxFailures: 10, DefaultEmail: username() + "@" + Hostname(), -- cgit v1.2.3-70-g09d2