Documentation
¶
Index ¶
- func Health(serviceName string, checker HealthChecker) gin.HandlerFunc
- func Info(serviceName string) gin.HandlerFunc
- func Liveness(serviceName string) gin.HandlerFunc
- func Metrics() gin.HandlerFunc
- func Readiness(serviceName string, checker HealthChecker) gin.HandlerFunc
- func Version() gin.HandlerFunc
- type HealthChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Health ¶
func Health(serviceName string, checker HealthChecker) gin.HandlerFunc
Health returns a handler that reports service health including component statuses.
func Info ¶
func Info(serviceName string) gin.HandlerFunc
Info returns a handler that reports service version and build information.
func Liveness ¶
func Liveness(serviceName string) gin.HandlerFunc
Liveness returns a handler for K8s liveness probes. It simply confirms the process is alive and able to serve HTTP.
func Metrics ¶
func Metrics() gin.HandlerFunc
Metrics returns a handler that reports runtime memory and goroutine metrics.
func Readiness ¶
func Readiness(serviceName string, checker HealthChecker) gin.HandlerFunc
Readiness returns a handler for K8s readiness probes. It checks component health via the HealthChecker to determine if the service can accept traffic.
func Version ¶
func Version() gin.HandlerFunc
Version returns a handler that reports build version information.
Types ¶
Click to show internal directories.
Click to hide internal directories.