Files

15 lines
367 B
Go

package observability
import (
"net/http"
"sync/atomic"
)
func FormatPrometheusCounter(name, help string, value uint64) string {
panic("TODO: zwróć format Prometheus (# HELP, # TYPE counter, name value)")
}
func ReadinessHandler(ready *atomic.Bool) http.HandlerFunc {
panic("TODO: zwróć 200 OK gdy ready.Load() == true, inaczej 503 Service Unavailable")
}