codemp-nvim/proto/workspace.proto
alemidev 83ae6e3cd1 feat: initial rework of protocol flow
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).
2022-07-31 13:44:48 +02:00

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;
}