readiness

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 4 Imported by: 0

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(ctx context.Context) bool

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

func SetCachePool(pool *redis.Pool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL