AppFlowy/shared-lib/flowy-sync/resources/proto/ws_data.proto

30 lines
618 B
Protocol Buffer
Raw Normal View History

2021-09-21 07:07:07 +00:00
syntax = "proto3";
2021-12-26 15:59:45 +00:00
import "revision.proto";
2021-12-21 05:42:58 +00:00
2022-01-14 07:23:21 +00:00
message ClientRevisionWSData {
string object_id = 1;
ClientRevisionWSDataType ty = 2;
2021-12-26 15:59:45 +00:00
RepeatedRevision revisions = 3;
2022-01-14 07:23:21 +00:00
string data_id = 4;
}
2022-01-14 07:23:21 +00:00
message ServerRevisionWSData {
string object_id = 1;
ServerRevisionWSDataType ty = 2;
2021-09-21 07:07:07 +00:00
bytes data = 3;
}
message NewDocumentUser {
2021-12-16 13:31:36 +00:00
string user_id = 1;
string doc_id = 2;
2021-12-20 12:59:33 +00:00
bytes revision_data = 3;
2021-12-16 13:31:36 +00:00
}
2022-01-14 07:23:21 +00:00
enum ClientRevisionWSDataType {
ClientPushRev = 0;
2022-01-01 15:09:13 +00:00
ClientPing = 1;
}
2022-01-14 07:23:21 +00:00
enum ServerRevisionWSDataType {
ServerAck = 0;
ServerPushRev = 1;
ServerPullRev = 2;
2021-12-16 13:31:36 +00:00
UserConnect = 3;
2021-09-21 07:07:07 +00:00
}