Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/le0developer/go-http-pinger
Ping a URL every 15 seconds
https://github.com/le0developer/go-http-pinger
Last synced: 3 days ago
JSON representation
Ping a URL every 15 seconds
- Host: GitHub
- URL: https://github.com/le0developer/go-http-pinger
- Owner: Le0Developer
- License: mit
- Created: 2024-02-07T09:50:04.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-04-15T08:22:12.000Z (7 months ago)
- Last Synced: 2024-04-18T10:58:55.130Z (7 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-http-pinger
This is a simple HTTP pinger written in Go. It sends a GET request to a given URL and prints the response status code every 15 seconds.
## Why?
Running this on my Raspberry Pi.
The remote server will open an Instatus incident if it does not receive a request for 30 seconds.## Usage
Just buiold & run.
## Environment variables
- `URL`: The URL to ping.
- `API_TOKEN`: Your API token