mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-22 08:35:43 +00:00
wip: shoutrrr wrapper (may remove)
This commit is contained in:
parent
4725d9c823
commit
f169f1c710
1 changed files with 10 additions and 0 deletions
10
backend/internal/core/services/notifier/notifier.go
Normal file
10
backend/internal/core/services/notifier/notifier.go
Normal file
|
@ -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)
|
||||
}
|
Loading…
Reference in a new issue