diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2021-10-17 13:02:48 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2021-10-17 13:22:37 +0200 |
commit | c369f615b0b53471a9f6d214e847bcaa1703ea5a (patch) | |
tree | 4cd88094ef159907f825098f11cadcb39bb19966 /pkg/config | |
parent | 81d1e95df27232afd10275a29471bc2958092d6d (diff) | |
download | feed2imap-go-c369f615b0b53471a9f6d214e847bcaa1703ea5a.tar.gz feed2imap-go-c369f615b0b53471a9f6d214e847bcaa1703ea5a.tar.bz2 feed2imap-go-c369f615b0b53471a9f6d214e847bcaa1703ea5a.zip |
Allow to specify path to the cache directly in the config file
Diffstat (limited to '')
-rw-r--r-- | pkg/config/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
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(), |