项目文件夹

文件
Shelley fcc799742a
Run Tests / Unit Tests (push) Has been cancelled
Run Tests / Etcd Integration Tests (push) Has been cancelled
feat: add health check package for K8s-style probes
Adds a new health package providing:
- /health endpoint for overall health status
- /health/live for Kubernetes liveness probes
- /health/ready for Kubernetes readiness probes
- Built-in checks: PingCheck, TCPCheck, HTTPCheck, DNSCheck
- Critical vs non-critical checks
- Concurrent check execution
- Configurable timeouts
- Service info metadata

Integrates with micro run's health check waiting when services
specify a port in their micro.mu configuration.

Example usage:

    health.Register("database", health.PingCheck(db.Ping))
    health.Register("redis", health.TCPCheck("localhost:6379", time.Second))
    health.RegisterHandlers(mux)

Co-authored-by: Shelley <shelley@exe.dev>
2026-01-27 12:10:15 +00:00
..
2025-11-13 20:46:20 +00:00
x
2025-11-13 20:37:54 +00:00
2025-05-21 13:48:03 +01:00
2025-11-13 19:21:27 +00:00
2025-05-21 11:17:04 +01:00
x
2025-11-13 20:48:01 +00:00
2025-05-21 11:17:04 +01:00
2025-05-21 11:17:04 +01:00
2025-11-13 20:46:20 +00:00
2025-05-21 11:22:11 +01:00

Website

The Go Micro website including docs