ClaimKeys based on the 3-uple of user_id, device_id and algorithm name. Returns the keys claimed. Returns no error if a key cannot be claimed or if none exist for this (user, device, algorithm), instead it is omitted from the returned slice.
(ctx context.Context, userToDeviceToAlgorithm map[string]map[string]string)
| 62 | // ClaimKeys based on the 3-uple of user_id, device_id and algorithm name. Returns the keys claimed. Returns no error if a key |
| 63 | // cannot be claimed or if none exist for this (user, device, algorithm), instead it is omitted from the returned slice. |
| 64 | ClaimKeys(ctx context.Context, userToDeviceToAlgorithm map[string]map[string]string) ([]api.OneTimeKeys, error) |
| 65 | |
| 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. |
no outgoing calls
no test coverage detected