mirror of
https://github.com/arnaucube/canaryBot.git
synced 2026-06-05 15:31:38 +02:00
No description
- Go 100%
| .gitignore | ||
| canaryBot | ||
| checker.go | ||
| config.go | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| log.go | ||
| main.go | ||
| matrix.go | ||
| README.md | ||
canaryBot
Bot to check if services are alive. Current bots:
- Matrix (Riot)
Config
File config.json
{
"matrix": {
"room_id": "!zzzzz:mmmmmm.ooo",
"user": "aaaaa",
"password": "xxxxx",
"server": "https://sssss.ooo"
},
"services": [{
"name": "name01",
"url": "http://127.0.0.1:80",
"statusCode": 200
},
{
"name": "service02",
"url": "http://127.0.0.1:7000/api",
"statusCode": 200
}
],
"sleepTime": 30,
"retry": 5
}
- sleepTime: time between each request to the services
- retry: after X times failing, restart the counter
Run
./canaryBot