Documentation
¶
Overview ¶
Package readiness tracks the reachability of backend dependencies (beyond Mongo, which api-core.go's HealthHandler already covers) so /status/health can fail loud instead of the service silently degrading to an uncached or unlimited mode.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheReady ¶
CacheReady live-pings the configured cache backend rather than returning a cached boot-time result - a Redis outage that resolves on its own should let readiness recover without requiring a pod restart.
func SetCachePool ¶ added in v0.6.4
SetCachePool records the Redis pool CacheReady live-pings on each call. Pass nil when no cache backend is configured (REDIS_HOST unset) - CacheReady then reports true, since the in-memory fallback store has no external dependency to fail.
Types ¶
This section is empty.