whiskers.git / backend / worker / src / README.md
1# src
2
3| File | What | Runs natively in tests |
4| --- | --- | --- |
5| `lib.rs` | The Worker's `fetch`: request in, `whiskers_service::Service` over `ObjectBackend`, response out. | no |
6| `object.rs` | `HouseholdObject`, the Durable Object: SQLite as a `DocStore`, round `documents::serve`. | no |
7| `hub.rs` | `ObjectHub<D>`: the `Hub` port by asking the household's object; and the test mode's `through`. | no |
8| `backend.rs` | `ObjectBackend`: the capabilities the Worker has (`HasMemory`, `HasHousehold`, `HasChat`). | no |
9| `documents.rs` | What an object does with its documents: `Held`, `merge_in`, `serve`. No Cloudflare in it. | yes, including the real conformance laws |
10| `household.rs` | `HouseholdId` and `Households`: which household a request is for. | yes |
11| `wire.rs` | Content types and the access line's route class. | yes |
12| `logging.rs` | The `log` facade on the console. | the level parsing |