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

Method StateEntriesForEventIDs

roomserver/storage/interface.go:82–82  ·  view source on GitHub ↗

Look up the state entries for a list of string event IDs Returns an error if the there is an error talking to the database Returns a types.MissingEventError if the event IDs aren't in the database.

(ctx context.Context, eventIDs []string)

Source from the content-addressed store, hash-verified

80 // Returns an error if the there is an error talking to the database
81 // Returns a types.MissingEventError if the event IDs aren't in the database.
82 StateEntriesForEventIDs(ctx context.Context, eventIDs []string) ([]types.StateEntry, error)
83 // Look up the string event state keys for a list of numeric event state keys
84 // Returns an error if there was a problem talking to the database.
85 EventStateKeys(ctx context.Context, eventStateKeyNIDs []types.EventStateKeyNID) (map[types.EventStateKeyNID]string, error)

Callers 4

CheckForSoftFailFunction · 0.65
CheckAuthEventsFunction · 0.65
backfillViaFederationMethod · 0.65
calculateAndSetStateMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected