echo/src
Jean 07eb9939d7
Add a JSON-RPC stats endpoint for websites
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.
2026-07-13 20:21:41 +00:00
..
engine Add a JSON-RPC stats endpoint for websites 2026-07-13 20:21:41 +00:00
config.rs Add a JSON-RPC stats endpoint for websites 2026-07-13 20:21:41 +00:00
gossip.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
grpc.rs Shared stats registry + gRPC Stats API 2026-07-13 19:13:31 +00:00
jsonrpc.rs Add a JSON-RPC stats endpoint for websites 2026-07-13 20:21:41 +00:00
link.rs email: HTML templates and multipart messages 2026-07-12 15:57:34 +00:00
main.rs Add a JSON-RPC stats endpoint for websites 2026-07-13 20:21:41 +00:00
proto.rs modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00