Skip to main content

Module short

Module short 

Source
Expand description

Compact numeric identifiers for room and event data.

The service maps event IDs, state keys, state hashes, and room IDs into a shared global sequence space. Event IDs and state keys have paired forward and reverse mappings. State hashes have a partial forward index and no reverse mapping; room IDs have only a forward mapping.

Structsยง

Creating ๐Ÿ”’
Serializes concurrent allocations so one identity maps to one short id.
Data ๐Ÿ”’
Service
Allocates and resolves compact identifiers used by room storage.

Type Aliasesยง

ShortEventId
Numeric identifier types shared with Matrix data structures.
ShortId
Numeric identifier types shared with Matrix data structures.
ShortRoomId
Numeric identifier types shared with Matrix data structures.
ShortStateHash
Compact identifier assigned to a complete room state hash.
ShortStateKey
Numeric identifier types shared with Matrix data structures.