From f169f1c710240c41fdf7e3ec7dbcb6d993d63930 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sat, 4 Mar 2023 22:00:50 -0900 Subject: [PATCH] wip: shoutrrr wrapper (may remove) --- backend/internal/core/services/notifier/notifier.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 backend/internal/core/services/notifier/notifier.go diff --git a/backend/internal/core/services/notifier/notifier.go b/backend/internal/core/services/notifier/notifier.go new file mode 100644 index 0000000..09e6a62 --- /dev/null +++ b/backend/internal/core/services/notifier/notifier.go @@ -0,0 +1,10 @@ +// Package notifier exposes the notifier service for sending external messages. +package notifier + +import "github.com/containrrr/shoutrrr" + +// Notify is a proxy method for shoutrrr.Send. May be removed if additional +// functionality is _not_ needed. +func Notify(url, message string) error { + return shoutrrr.Send(url, message) +}