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:
parent
7f969a891f
commit
b9a991e5aa
7 changed files with 364 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue