From c369f615b0b53471a9f6d214e847bcaa1703ea5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= 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') 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