Add support for Gotify notifications (#346)

This adds support for Gotify (https://gotify.net) notifications.

Work items:

* Two flags have been added to internal/flags/flags.go:
  "notification-gotify-url" and "notification-gotify-token".

* A Gotify notification driver has been added in
  notifications/gotify.go.

* "gotify" has been added to notification driver choices in
  notifications/notifier.go.

* Docs have been updated
This commit is contained in:
Luka Peschke 2019-07-22 21:17:54 +02:00 committed by Simon Aronsson
parent d744b5ddf7
commit dff16dc639
4 changed files with 131 additions and 2 deletions

View file

@ -38,6 +38,8 @@ func NewNotifier(c *cobra.Command) *Notifier {
tn = newSlackNotifier(c, acceptedLogLevels)
case msTeamsType:
tn = newMsTeamsNotifier(c, acceptedLogLevels)
case gotifyType:
tn = newGotifyNotifier(c, acceptedLogLevels)
default:
log.Fatalf("Unknown notification type %q", t)
}