https://github.com/chempik1234/availability-checker-web
availability checker: webhook example with web UI (collect and display)
https://github.com/chempik1234/availability-checker-web
docker docker-compose go-redis golang nethttp pgx-v5 postgresql redis simple
Last synced: 3 months ago
JSON representation
availability checker: webhook example with web UI (collect and display)
- Host: GitHub
- URL: https://github.com/chempik1234/availability-checker-web
- Owner: chempik1234
- Created: 2025-02-23T11:37:04.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-26T12:09:01.000Z (over 1 year ago)
- Last Synced: 2025-10-26T06:47:44.907Z (8 months ago)
- Topics: docker, docker-compose, go-redis, golang, nethttp, pgx-v5, postgresql, redis, simple
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
It just works. If not, please create **an Issue**.
# Simple as hell!
Written in `net/http`, using `go-redis` and `pgx`
# What does it do?
Stores healthcheck results in **postgresql** and
has a webhook token feature (stores tokens in **Redis**)
Tokens are required for log receiving, but not for
anything else
# API
| Method | URL | Params | Definition |
|--------|---------------------|---------------------------------------------------|--------------------------------------------------------------------|
| POST | / | _Authorizaion_ (header) - **"Token "** | receive logs in standard format (token required with prefix Token) |
| GET | /logs | | list logs |
| GET | /logs?name_filter= | _name_filter_ - **"my service"** | list logs that were sent with given name ("name" == name_filter) |
| DELETE | /logs | | delete all logs |
| DELETE | /logs?clear_before= | _clear_before_ - **2006-01-02T15:04:05Z07:00** | delete logs that were sent before given datetime |
| POST | /tokens | | retrieve a new token |
| DELETE | /tokens?token= | _token_ - **** | delete an existing token |
# Launch
```
docker compose up -d --build
```