mirror of
https://github.com/hexedtech/codemp-vscode.git
synced 2024-11-22 15:34:49 +01:00
21 lines
497 B
Protocol Buffer
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;
|
|
}
|