Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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