Expand description
Stores accepted room events, outliers, and their timeline indexes.
The service maps event IDs to per-room stream positions, presents events to users, and coordinates append, backfill, purge, and redaction operations. Timeline insertion is serialized by the innermost per-room lock.
ModulesΒ§
- append π
- Appends authenticated events to room timelines and applies their side effects.
- backfill π
- Retrieves older room history from federation and inserts validated events.
- build π
- Builds and appends locally authored room events.
- create π
- Constructs and signs local room events without persisting them.
- pdus π
- Streams, indexes, and deletes accepted room timeline rows.
- purge π
- Selectively removes historical accepted events from a room timeline.
- redact π
- Replaces accepted timeline events with their room-version redacted form.
StructsΒ§
- Data π
- Extract
Body π - Extract
Event πId - Extract
Relates πTo - Extract
Relates πToEvent Id - PduId
- Re-exports the typed and raw persistent timeline identifiers.
- Service
- Provides persistent event lookup, insertion, and room timeline traversal.
EnumsΒ§
- RawPdu
Id - Re-exports the typed and raw persistent timeline identifiers.
FunctionsΒ§
- bias_
count - Re-exports the standard timeline item and count-key transformation.
Type AliasesΒ§
- Pdus
Iter Item - Re-exports the standard timeline item and count-key transformation.
- Room
Mutex Guard - Guard proving exclusive access to a roomβs timeline insertion path.
- Room
Mutex πMap