mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 06:28:13 +01:00
Add Rocket.Chat notifier (#44)
This commit is contained in:
@@ -52,6 +52,13 @@ func TestLoad(t *testing.T) {
|
||||
Schedule: "*/30 * * * *",
|
||||
},
|
||||
Notif: model.Notif{
|
||||
Gotify: model.NotifGotify{
|
||||
Enable: false,
|
||||
Endpoint: "http://gotify.foo.com",
|
||||
Token: "Token123456",
|
||||
Priority: 1,
|
||||
Timeout: 10,
|
||||
},
|
||||
Mail: model.NotifMail{
|
||||
Enable: false,
|
||||
Host: "localhost",
|
||||
@@ -59,6 +66,14 @@ func TestLoad(t *testing.T) {
|
||||
SSL: false,
|
||||
InsecureSkipVerify: false,
|
||||
},
|
||||
RocketChat: model.NotifRocketChat{
|
||||
Enable: false,
|
||||
Endpoint: "http://rocket.foo.com:3000",
|
||||
Channel: "#general",
|
||||
UserID: "abcdEFGH012345678",
|
||||
Token: "Token123456",
|
||||
Timeout: 10,
|
||||
},
|
||||
Slack: model.NotifSlack{
|
||||
Enable: false,
|
||||
WebhookURL: "https://hooks.slack.com/services/ABCD12EFG/HIJK34LMN/01234567890abcdefghij",
|
||||
@@ -78,13 +93,6 @@ func TestLoad(t *testing.T) {
|
||||
},
|
||||
Timeout: 10,
|
||||
},
|
||||
Gotify: model.NotifGotify{
|
||||
Enable: false,
|
||||
Endpoint: "http://gotify.foo.com",
|
||||
Token: "Token123456",
|
||||
Priority: 1,
|
||||
Timeout: 10,
|
||||
},
|
||||
},
|
||||
RegOpts: map[string]model.RegOpts{
|
||||
"someregopts": {
|
||||
|
||||
Reference in New Issue
Block a user