1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! Per-NSID handler bodies for the inbound XRPC gateway
//! (#95-#98, v1.7).
//!
//! Each module here implements one of the four allowlisted NSIDs
//! from [`crate::xrpc_gateway::Nsid`], translating the inbound
//! Ozone wire shape into cairn-mod's internal write surface
//! (`WriterHandle::record_action` / `revoke_action` / etc.) per
//! §A14's "one canonical action-recording path".
//!
//! The router in [`crate::xrpc_gateway::router`] wires these into
//! axum routes after auth + membership + replay middleware so each
//! handler runs only for fully-authorized requests.
use ;
use crateWriterHandle;
/// Shared state every gateway handler receives via `Extension`.
///
/// Carries the [`WriterHandle`] (so handlers can call into the
/// canonical recordAction pipeline) and the SQLite pool (used for
/// queries that aren't owned by the writer task — e.g.,
/// `modEventReverseTakedown`'s lookup of the most-recent unrevoked
/// Takedown action_id for a subject).
///
/// `Clone` is intentional: axum's `Extension` layer hands a clone
/// to each handler invocation. `WriterHandle` and `Pool<Sqlite>`
/// are both cheap to clone (channel-sender + connection-pool
/// arc-clone respectively).