Skip to content

availability checker: webhook example with web UI (collect and display)

Notifications You must be signed in to change notification settings

chempik1234/availability-checker-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <token_str>" 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 - <token_str> delete an existing token

Launch

docker compose up -d --build

About

availability checker: webhook example with web UI (collect and display)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published