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

Method GetFilter

syncapi/storage/interface.go:138–138  ·  view source on GitHub ↗

GetFilter looks up the filter associated with a given local user and filter ID and populates the target filter. Otherwise returns an error if no such filter exists or if there was an error talking to the database.

(ctx context.Context, target *gomatrixserverlib.Filter, localpart string, filterID string)

Source from the content-addressed store, hash-verified

136 // and populates the target filter. Otherwise returns an error if no such filter exists
137 // or if there was an error talking to the database.
138 GetFilter(ctx context.Context, target *gomatrixserverlib.Filter, localpart string, filterID string) error
139 // PutFilter puts the passed filter into the database.
140 // Returns the filterID as a string. Otherwise returns an error if something
141 // goes wrong.

Callers 2

newSyncRequestFunction · 0.65
GetFilterFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected