mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 23:44:55 +01:00
22 lines
497 B
Protocol Buffer
22 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;
|
||
|
}
|