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

Method StoreEvent

appservice/storage/interface.go:24–24  ·  view source on GitHub ↗
(ctx context.Context, appServiceID string, event *gomatrixserverlib.HeaderedEvent)

Source from the content-addressed store, hash-verified

22
23type Database interface {
24 StoreEvent(ctx context.Context, appServiceID string, event *gomatrixserverlib.HeaderedEvent) error
25 GetEventsWithAppServiceID(ctx context.Context, appServiceID string, limit int) (int, int, []gomatrixserverlib.HeaderedEvent, bool, error)
26 CountEventsWithAppServiceID(ctx context.Context, appServiceID string) (int, error)
27 UpdateTxnIDForEvents(ctx context.Context, appserviceID string, maxID, txnID int) error

Callers 4

persistEventsFunction · 0.65
processRoomEventMethod · 0.65
fetchAuthEventsMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected