readiness

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 1 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() 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.

Jump to

Keyboard shortcuts

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