Skip to main content

daemon/
lib.rs

1//! Daemon-side library code: cleanup sweeper, auto-room saga, and the
2//! on-disk event persister.
3//!
4//! `link()` is called from the bin to ensure the `inventory` registrations
5//! generated by `#[myko_saga]` / `#[myko_command]` survive dead-code
6//! elimination. Message delivery itself is handled directly by the
7//! `marshal_entities::SendMessage` and `marshal_entities::BroadcastMessage`
8//! commands — there's no saga in the critical path for delivery.
9
10pub mod auto_rooms;
11pub mod cleanup;
12pub mod hooks;
13pub mod http_listener;
14pub mod nickname_assign;
15pub mod persister;
16
17pub fn link() {
18    auto_rooms::link();
19    nickname_assign::link();
20}