Skip to main content

Crate ferra_agent

Crate ferra_agent 

Source
Expand description

Ferra sidecar agent.

Runs alongside a service container, holds an in-memory cache of every key under one or more configured prefixes, keeps that cache fresh via SSE watches against ferra-server, and exposes a tiny localhost HTTP API the service uses to read config:

  • GET /cfg/{key} — return current value or 404
  • GET /cfg/{key}?wait=30s&since=N — long-poll: return when key changes
  • GET /cfg?prefix=... — list everything under a prefix
  • GET /healthz — process liveness
  • GET /readyz — initial snapshots loaded?

Re-exports§

pub use config::Args;

Modules§

api
cache
config
sse
Minimal SSE wire-format parser.
upstream
watch

Functions§

run