feat(server): add go_version to /api/info response (#54)
All checks were successful
CI/CD Pipeline / Build Docker Cache (push) Successful in 7s
CI/CD Pipeline / CI Pipeline (push) Successful in 4m57s
CI/CD Pipeline / Trigger Docker Push (push) Successful in 6s

Co-authored-by: Gabriel Radureau <arcodange@gmail.com>
Co-committed-by: Gabriel Radureau <arcodange@gmail.com>
This commit was merged in pull request #54.
This commit is contained in:
2026-05-05 10:18:30 +02:00
committed by arcodange
parent 42d165624b
commit 8d93050636
4 changed files with 16 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import (
"net"
"net/http"
"os/signal"
"runtime"
"syscall"
"time"
@@ -453,6 +454,7 @@ type InfoResponse struct {
UptimeSeconds int64 `json:"uptime_seconds"`
CacheEnabled bool `json:"cache_enabled"`
HealthzStatus string `json:"healthz_status"`
GoVersion string `json:"go_version"`
}
// handleHealthz godoc
@@ -500,6 +502,7 @@ func (s *Server) handleInfo(w http.ResponseWriter, r *http.Request) {
UptimeSeconds: int64(time.Since(s.startedAt).Seconds()),
CacheEnabled: s.cacheService != nil,
HealthzStatus: "healthy",
GoVersion: runtime.Version(),
}
// Cache key