mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 14:31:47 +01:00
Add Rocket.Chat notifier (#44)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user