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 ¶
func CacheReady() bool
CacheReady reports the last-known reachability of the configured cache backend.
func SetCacheReady ¶
func SetCacheReady(ready bool)
SetCacheReady records whether the configured cache backend (Redis, when REDIS_HOST is set) is currently reachable. Services without REDIS_HOST configured should call this with true, since the in-memory fallback store has no external dependency to fail.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.