Documentation
¶
Overview ¶
Command api is a thin HTTP wrapper over the queue Store — the proof-of-concept for non-Go producers, plus a Prometheus /metrics endpoint over the journal and a minimal live stats page. PoC scope: no auth, no write-path beyond enqueue — bind it to localhost only.
Usage:
go run ./examples/api --db tasks.db --addr 127.0.0.1:8095
Endpoints:
POST /enqueue {"type":"sh","project":"demo","payload":{"cmd":"echo hi"}}
GET /stats per-status task counts (JSON)
GET /metrics Prometheus text format (fact counters + status gauges)
GET / single-page live view of /stats
Click to show internal directories.
Click to hide internal directories.