aboutsummaryrefslogtreecommitdiff
path: root/pkg/config/config.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2022-01-09 23:11:23 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2022-01-10 00:16:44 +0100
commitc3b84b06ff16aa0ae280538b08ee4912c3d215a8 (patch)
treec43aea6da3eeb10e696d794f7407cbae91920ed2 /pkg/config/config.go
parent5b3f0f96b7e345a82f0d963ddef1dd4569465145 (diff)
downloadfeed2imap-go-c3b84b06ff16aa0ae280538b08ee4912c3d215a8.tar.gz
feed2imap-go-c3b84b06ff16aa0ae280538b08ee4912c3d215a8.tar.bz2
feed2imap-go-c3b84b06ff16aa0ae280538b08ee4912c3d215a8.zip
Specify cookies in feed config to use in all HTTP requests.
Diffstat (limited to 'pkg/config/config.go')
-rw-r--r--pkg/config/config.go22
1 files changed, 12 insertions, 10 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go
index a580337..080699a 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -7,6 +7,7 @@ import (
"runtime"
"strings"
+ "github.com/Necoro/feed2imap-go/internal/http"
"github.com/Necoro/feed2imap-go/pkg/log"
"github.com/Necoro/feed2imap-go/pkg/util"
)
@@ -43,16 +44,17 @@ var DefaultGlobalOptions = GlobalOptions{
// Options are feed specific
// NB: Always specify a yaml name, as it is later used in processing
type Options struct {
- MinFreq int `yaml:"min-frequency"`
- InclImages bool `yaml:"include-images"`
- EmbedImages bool `yaml:"embed-images"`
- Disable bool `yaml:"disable"`
- IgnHash bool `yaml:"ignore-hash"`
- AlwaysNew bool `yaml:"always-new"`
- Reupload bool `yaml:"reupload-if-updated"`
- NoTLS bool `yaml:"tls-no-verify"`
- ItemFilter string `yaml:"item-filter"`
- Body Body `yaml:"body"`
+ MinFreq int `yaml:"min-frequency"`
+ InclImages bool `yaml:"include-images"`
+ EmbedImages bool `yaml:"embed-images"`
+ Disable bool `yaml:"disable"`
+ IgnHash bool `yaml:"ignore-hash"`
+ AlwaysNew bool `yaml:"always-new"`
+ Reupload bool `yaml:"reupload-if-updated"`
+ NoTLS bool `yaml:"tls-no-verify"`
+ ItemFilter string `yaml:"item-filter"`
+ Body Body `yaml:"body"`
+ Cookies []http.Cookie `yaml:"cookies"`
}
var DefaultFeedOptions = Options{