Version API endpoint

This commit is contained in:
binwiederhier
2026-02-08 14:28:27 -05:00
parent 65050ef4dc
commit cfdc364e3f
5 changed files with 54 additions and 0 deletions

View File

@@ -319,6 +319,12 @@ type apiHealthResponse struct {
Healthy bool `json:"healthy"`
}
type apiVersionResponse struct {
Version string `json:"version"`
Commit string `json:"commit"`
Date string `json:"date"`
}
type apiStatsResponse struct {
Messages int64 `json:"messages"`
MessagesRate float64 `json:"messages_rate"` // Average number of messages per second