Skip to main content

Module timeline

Module timeline 

Source
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 πŸ”’
ExtractBody πŸ”’
ExtractEventId πŸ”’
ExtractRelatesTo πŸ”’
ExtractRelatesToEventId πŸ”’
PduId
Re-exports the typed and raw persistent timeline identifiers.
Service
Provides persistent event lookup, insertion, and room timeline traversal.

EnumsΒ§

RawPduId
Re-exports the typed and raw persistent timeline identifiers.

FunctionsΒ§

bias_count
Re-exports the standard timeline item and count-key transformation.

Type AliasesΒ§

PdusIterItem
Re-exports the standard timeline item and count-key transformation.
RoomMutexGuard
Guard proving exclusive access to a room’s timeline insertion path.
RoomMutexMap πŸ”’