echo/api
Jean d4e2c905f2
Shared stats registry + gRPC Stats API
A single namespaced counter map on the engine that every service reports
into: ServiceCtx::count(key) is folded in after each command, the engine
bumps its own events (botserv.kick/ban/warn/greet/trigger), and a
per-service command counter (nickserv.command, chanserv.command, …) is
tallied in dispatch. stats_snapshot() merges those with live gauges from
the store (accounts/channels/bots/opers total).

Exposed over gRPC as a new Stats service (Get -> map<string,uint64>),
authorized by the same bearer token as Directory/Accounts — so any
consumer (a dashboard, Django) reads every module's stats through one
pipe. New service is additive to the proto; existing RPCs untouched.
2026-07-13 19:13:31 +00:00
..
src Shared stats registry + gRPC Stats API 2026-07-13 19:13:31 +00:00
templates/email modules: split services and the ircd link into external crates 2026-07-13 01:33:56 +00:00
Cargo.toml modules: extract fedserv-api leaf crate (protocol + service vocabulary) 2026-07-13 00:36:42 +00:00