codemp-nvim/proto/workspace.proto
alemidev 0151a9e1bd feat: defined some basic protocol
Co-authored-by: f-tlm <f-tlm@users.noreply.github.com>
2022-07-13 01:56:21 +02:00

21 lines
497 B
Protocol Buffer

syntax = "proto3";
package workspace;
service Workspace {
rpc Create (SessionRequest) returns (SessionResponse);
rpc Join (SessionRequest) returns (SessionResponse);
rpc Sync (SessionRequest) returns (SessionResponse);
rpc Leave (SessionRequest) returns (SessionResponse);
}
message SessionRequest {
string sessionKey = 1;
optional string content = 2;
}
message SessionResponse {
string sessionKey = 1;
bool accepted = 2;
optional string hash = 3;
optional string content = 4;
}