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

Method StateAtEventIDs

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

Look up the state of a room at each event for a list of string event IDs. Returns an error if there is an error talking to the database. The length of []types.StateAtEvent is guaranteed to equal the length of eventIDs if no error is returned. Returns a types.MissingEventError if the room state for t

(ctx context.Context, eventIDs []string)

Source from the content-addressed store, hash-verified

45 // The length of []types.StateAtEvent is guaranteed to equal the length of eventIDs if no error is returned.
46 // Returns a types.MissingEventError if the room state for the event IDs aren't in the database
47 StateAtEventIDs(ctx context.Context, eventIDs []string) ([]types.StateAtEvent, error)
48 // Look up the numeric IDs for a list of string event types.
49 // Returns a map from string event type to numeric ID for the event type.
50 EventTypeNIDs(ctx context.Context, eventTypes []string) (map[string]types.EventTypeNID, error)

Callers 6

StateBeforeEventFunction · 0.65
QueryStateAfterEventsMethod · 0.65
loadStateAtEventIDsMethod · 0.65
getMissingEventsMethod · 0.65
isPrevStateKnownMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected