1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

wip: key-value object

This commit is contained in:
Sergey Cherepanov 2024-12-10 16:53:29 +01:00
parent 7f969a891f
commit b9a991e5aa
No known key found for this signature in database
GPG key ID: 87F8EDE8FBDF637C
7 changed files with 364 additions and 4 deletions

View file

@ -196,6 +196,29 @@ message AclGetRecordsResponse {
repeated bytes records = 1;
}
message KVHeadSyncRequest {
repeated HeadSyncRange ranges = 3;
}
message KVHeadSyncResponse {
repeated HeadSyncResult results = 1;
}
message KVGetValuesRequest {
repeated string keys = 1;
}
message KVGetValuesResponse {
repeated KeyValue values = 1;
}
message KeyValue {
string key = 1;
bytes value = 2;
int64 timestampMilli = 3;
}
// DiffType is a type of diff
enum DiffType {
Initial = 0;