Add Rocket.Chat notifier (#44)

This commit is contained in:
CrazyMax
2020-03-01 17:09:22 +01:00
committed by GitHub
parent 8a49f41fdd
commit 08cd3d90b8
17 changed files with 321 additions and 82 deletions

View File

@@ -49,6 +49,10 @@ func Load(flags model.Flags, version string) (*Config, error) {
FirstCheckNotif: false,
},
Notif: model.Notif{
Gotify: model.NotifGotify{
Enable: false,
Timeout: 10,
},
Mail: model.NotifMail{
Enable: false,
Host: "localhost",
@@ -56,6 +60,10 @@ func Load(flags model.Flags, version string) (*Config, error) {
SSL: false,
InsecureSkipVerify: false,
},
RocketChat: model.NotifRocketChat{
Enable: false,
Timeout: 10,
},
Slack: model.NotifSlack{
Enable: false,
},
@@ -67,10 +75,6 @@ func Load(flags model.Flags, version string) (*Config, error) {
Method: "GET",
Timeout: 10,
},
Gotify: model.NotifGotify{
Enable: false,
Timeout: 10,
},
},
}