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

Method StoreKeyChange

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

StoreKeyChange stores key change metadata and returns the device change ID which represents the position in the /sync stream for this device change. `userID` is the the user who has changed their keys in some way.

(ctx context.Context, userID string)

Source from the content-addressed store, hash-verified

66 // StoreKeyChange stores key change metadata and returns the device change ID which represents the position in the /sync stream for this device change.
67 // `userID` is the the user who has changed their keys in some way.
68 StoreKeyChange(ctx context.Context, userID string) (int64, error)
69
70 // KeyChanges returns a list of user IDs who have modified their keys from the offset given (exclusive) to the offset given (inclusive).
71 // A to offset of types.OffsetNewest means no upper limit.

Callers 5

TestKeyChangesFunction · 0.65
TestKeyChangesNoDupesFunction · 0.65
TestKeyChangesUpperLimitFunction · 0.65
ProduceKeyChangesMethod · 0.65

Calls

no outgoing calls

Tested by 3

TestKeyChangesFunction · 0.52
TestKeyChangesNoDupesFunction · 0.52
TestKeyChangesUpperLimitFunction · 0.52