Plain HTTP + JSON-RPC 2.0 (axum, already in the tree) so a site backend
can pull stats without gRPC stubs. Methods: stats.get (counters + gauges)
and stats.channel { channel } (lines + top talkers). Optional [jsonrpc]
config, off unless set.
Security: bearer-token authenticated with a constant-time compare, refuses
to start with an empty token, read-only (only stats.* methods — no way to
mutate state), method-allowlisted, a 64 KiB body limit, and meant to bind
to localhost beside the backend.
|
||
|---|---|---|
| .. | ||
| engine | ||
| config.rs | ||
| gossip.rs | ||
| grpc.rs | ||
| jsonrpc.rs | ||
| link.rs | ||
| main.rs | ||
| proto.rs | ||