mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
alemidev
83ae6e3cd1
Added a "session" stage, to auth and connect to a Workspace. Added workspace-level operations (sync, get buffers list...). Added buffer-level sync operations (push, pull).
21 lines
342 B
Protocol Buffer
21 lines
342 B
Protocol Buffer
syntax = "proto3";
|
|
package workspace;
|
|
|
|
service Workspace {
|
|
rpc Subscribe (WorkspaceRequest) returns (stream Event);
|
|
rpc Buffers (WorkspaceRequest) returns (BufferList);
|
|
}
|
|
|
|
message Event {
|
|
int32 id = 1;
|
|
optional string body = 2;
|
|
}
|
|
|
|
message WorkspaceRequest {
|
|
string sessionKey = 1;
|
|
}
|
|
|
|
message BufferList {
|
|
repeated string path = 1;
|
|
}
|
|
|