summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/rss/config.go9
-rw-r--r--internal/telegram/config.go6
2 files changed, 15 insertions, 0 deletions
diff --git a/internal/rss/config.go b/internal/rss/config.go
new file mode 100644
index 0000000..e1fd34c
--- /dev/null
+++ b/internal/rss/config.go
@@ -0,0 +1,9 @@
+package rss
+
+import "time"
+
+type Config struct {
+ URL string `env:"RSS_URL"`
+ CheckInterval time.Duration `env:"CHECK_INTERVAL"`
+ SeqFile string `env:"SEQ_FILE"`
+}
diff --git a/internal/telegram/config.go b/internal/telegram/config.go
new file mode 100644
index 0000000..9fd6029
--- /dev/null
+++ b/internal/telegram/config.go
@@ -0,0 +1,6 @@
+package telegram
+
+type Config struct {
+ BotToken string `env:"TELEGRAM_TOKEN"`
+ TargetGroups []int64 `env:"TELEGRAM_GROUPS"`
+}