2021-09-21 07:07:07 +00:00
|
|
|
syntax = "proto3";
|
2021-11-19 04:18:46 +00:00
|
|
|
|
2021-12-16 14:24:05 +00:00
|
|
|
message DocumentWSData {
|
2021-10-02 13:35:06 +00:00
|
|
|
string doc_id = 1;
|
2021-12-16 14:24:05 +00:00
|
|
|
DocumentWSDataType ty = 2;
|
2021-09-21 07:07:07 +00:00
|
|
|
bytes data = 3;
|
2021-12-19 13:10:50 +00:00
|
|
|
string id = 4;
|
2021-09-21 07:07:07 +00:00
|
|
|
}
|
2021-12-19 13:10:50 +00:00
|
|
|
message NewDocumentUser {
|
2021-12-16 13:31:36 +00:00
|
|
|
string user_id = 1;
|
|
|
|
string doc_id = 2;
|
|
|
|
int64 rev_id = 3;
|
|
|
|
}
|
2021-12-16 14:24:05 +00:00
|
|
|
enum DocumentWSDataType {
|
2021-12-19 13:10:50 +00:00
|
|
|
Ack = 0;
|
2021-09-27 06:49:05 +00:00
|
|
|
PushRev = 1;
|
|
|
|
PullRev = 2;
|
2021-12-16 13:31:36 +00:00
|
|
|
UserConnect = 3;
|
2021-09-21 07:07:07 +00:00
|
|
|
}
|