Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uberswe/uptime
A simple go program which checks if your websites are running and runs forever (stop it with ctrl+c). It takes two optional arguments, comma separated string with urls and an interval.
https://github.com/uberswe/uptime
go uptime
Last synced: 3 months ago
JSON representation
A simple go program which checks if your websites are running and runs forever (stop it with ctrl+c). It takes two optional arguments, comma separated string with urls and an interval.
- Host: GitHub
- URL: https://github.com/uberswe/uptime
- Owner: uberswe
- License: mit
- Created: 2021-04-21T19:06:04.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-26T10:16:54.000Z (over 2 years ago)
- Last Synced: 2024-08-03T23:28:17.004Z (6 months ago)
- Topics: go, uptime
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - uptime
README
# uptime
A simple go program which checks if your websites are running and runs forever (stop it with ctrl+c). It takes two optional arguments:
```
-interval=60
-urls='https://ma.rkus.io, https://www.uberswe.com'
```You can run this by typing `go run cmd/uptime/main.go -interval=5 -urls='https://ma.rkus.io, https://www.uberswe.com'` in a terminal.
Logs will look like this:
```
2021/04/22 00:26:45 https://ma.rkus.io - 200
2021/04/22 00:26:45 https://www.uberswe.com - 200
2021/04/22 00:26:49 https://www.uberswe.com - 200
2021/04/22 00:26:49 https://ma.rkus.io - 200
2021/04/22 00:26:54 https://www.uberswe.com - 200
2021/04/22 00:26:54 https://ma.rkus.io - 200
2021/04/22 00:26:59 https://www.uberswe.com - 200
2021/04/22 00:26:59 https://ma.rkus.io - 200
```