codemp-vscode/proto/workspace.proto

22 lines
497 B
Protocol Buffer
Raw Normal View History

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