MCPcopy Create free account
hub / github.com/daodst/chat / stateEntryMap

TypeAlias stateEntryMap

roomserver/state/state.go:1291–1291  ·  view source on GitHub ↗

Map from event type, state key tuple to numeric event ID. Implemented using binary search on a sorted array.

Source from the content-addressed store, hash-verified

1289// Map from event type, state key tuple to numeric event ID.
1290// Implemented using binary search on a sorted array.
1291type stateEntryMap []types.StateEntry
1292
1293// lookup an entry in the event map.
1294func (m stateEntryMap) lookup(stateKey types.StateKeyTuple) (eventNID types.EventNID, ok bool) {

Calls

no outgoing calls

Tested by

no test coverage detected