A simple script to check your website is up or down and you will be notified from Slack and Mattermost
A simple script to check your website is up or down by adding lists of websites to Links Struct, you will able to check the status of your website.
- Slack (ready to use)
- Mattermost (ready to use)
Running Script :
go run main.go
Building Script:
go build main.go
You can easily add your own links inside this list of links.
links := []linkStruct{
{
Label: "Amazon",
Link: "https://amazon.com",
Description: "Amazon Website",
IsUp: false,
},
{
Label: "Spotify",
Link: "http://spotify.com",
Description: "Spotify Website",
IsUp: false,
},
{
Label: "Google",
Link: "https://google.com",
Description: "Google Main Website",
IsUp: false,
},
}
make a copy of .env.example in root directory of project as .env and enter your Slack Hook URL
SLACK_HOOK_URL=YOUR SLACK HOOK URL
MATTERMOST_HOOK_URL=YOUR MATTERMOST HOOK URL