Status Page in Go https://status.exozy.me
Find a file
xtex 0f8fd793a8
Resolve Matrix room alias
Signed-off-by: xtex <xtexchooser@duck.com>
2023-10-01 08:41:46 +08:00
proto Resolve Matrix room alias 2023-10-01 08:41:46 +08:00
public Update tasks 2023-10-01 00:39:47 +00:00
scanner Merge 2023-09-30 16:58:01 +00:00
templates Update tasks 2023-10-01 00:39:47 +00:00
.gitignore Update readme 2023-09-30 16:15:54 +00:00
dinit-service Fix dinit service working directory 2023-10-01 00:30:35 +00:00
go.mod Finish Matrix API test 2023-09-30 16:01:44 +00:00
go.sum Finish Matrix API test 2023-09-30 16:01:44 +00:00
main.go Set unix socket to 0660 2023-10-01 00:24:30 +00:00
readme.md Update tasks 2023-10-01 00:40:23 +00:00

TODO

Tech stack

  • HTTP Server - net/http
    • listen on unix socket PORT (if set)
  • Templating - {{mustache}}
  • spawn with dinit/systemd
  • Config file - load TOML config (1. /opt/status-config/config.toml 2. test config)
  • Auto deploy with CI

Check online methods

  • TCP Connect
  • HTTP 2xx

Services

  • HTML page
    • [-] Page Styling (need to wait for all features)
    • show service type (tcp/http)
    • Increase constrast. Current RED/GREEN is contrast fail. Maybe don't show the border when service is up?
    • Bundle directory contents into executable in release mode. (not necessary)
  • [-] Matrix notification (not integrated)
  • Status history (database)
    • check service status every 5 minutes
    • store events
      • self boot up/shutdown
      • service status after booting up
      • everytime service status change (include all status data (e.g. failure reason) in the calculation)