mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
31 lines
492 B
Protocol Buffer
31 lines
492 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
message Revision {
|
|
int64 base_rev_id = 1;
|
|
int64 rev_id = 2;
|
|
bytes delta_data = 3;
|
|
string md5 = 4;
|
|
string doc_id = 5;
|
|
RevType ty = 6;
|
|
string user_id = 7;
|
|
}
|
|
message RepeatedRevision {
|
|
repeated Revision items = 1;
|
|
}
|
|
message RevId {
|
|
int64 value = 1;
|
|
}
|
|
message RevisionRange {
|
|
string doc_id = 1;
|
|
int64 start = 2;
|
|
int64 end = 3;
|
|
}
|
|
enum RevType {
|
|
Local = 0;
|
|
Remote = 1;
|
|
}
|
|
enum RevState {
|
|
StateLocal = 0;
|
|
Ack = 1;
|
|
}
|