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

Method KeyChanges

keyserver/storage/interface.go:73–73  ·  view source on GitHub ↗

KeyChanges returns a list of user IDs who have modified their keys from the offset given (exclusive) to the offset given (inclusive). A to offset of types.OffsetNewest means no upper limit. Returns the offset of the latest key change.

(ctx context.Context, fromOffset, toOffset int64)

Source from the content-addressed store, hash-verified

71 // A to offset of types.OffsetNewest means no upper limit.
72 // Returns the offset of the latest key change.
73 KeyChanges(ctx context.Context, fromOffset, toOffset int64) (userIDs []string, latestOffset int64, err error)
74
75 // StaleDeviceLists returns a list of user IDs ending with the domains provided who have stale device lists.
76 // If no domains are given, all user IDs with stale device lists are returned.

Callers 4

TestKeyChangesFunction · 0.65
TestKeyChangesNoDupesFunction · 0.65
TestKeyChangesUpperLimitFunction · 0.65
QueryKeyChangesMethod · 0.65

Calls

no outgoing calls

Tested by 3

TestKeyChangesFunction · 0.52
TestKeyChangesNoDupesFunction · 0.52
TestKeyChangesUpperLimitFunction · 0.52