aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notifier/notifiers.go
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2024-09-10 17:33:54 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2024-09-10 17:33:54 +0100
commit9d04ff6a4d1dde541a0253e0db59957c69fec4cf (patch)
tree70c7f9a2e6b64eef21e5efe78012d2e3261f4de0 /internal/notifier/notifiers.go
parent6fb41ab9b491a257b027bf8a3c8a0828dc681b9a (diff)
downloaddonetick-main.tar.gz
donetick-main.tar.bz2
donetick-main.zip
WIP: genericize notifier as interfaceHEADmain
Diffstat (limited to 'internal/notifier/notifiers.go')
-rw-r--r--internal/notifier/notifiers.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/notifier/notifiers.go b/internal/notifier/notifiers.go
new file mode 100644
index 0000000..5f6087c
--- /dev/null
+++ b/internal/notifier/notifiers.go
@@ -0,0 +1,15 @@
+package notifier
+
+import (
+ "donetick.com/core/config"
+ "donetick.com/core/internal/notifier/telegram"
+)
+
+type Notifiers []Notifier
+
+func NewNotifiers(config *config.Config) Notifiers {
+ var notifiers []Notifier
+ notifiers = append(notifiers, telegram.NewTelegramNotifier(config))
+
+ return notifiers
+}