mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 15:34:53 +01:00
38 lines
774 B
Protocol Buffer
38 lines
774 B
Protocol Buffer
syntax = "proto3";
|
|
package workspace;
|
|
|
|
service Workspace {
|
|
rpc Create (WorkspaceRequest) returns (WorkspaceResponse);
|
|
rpc Subscribe (WorkspaceRequest) returns (stream Event);
|
|
rpc Buffers (WorkspaceRequest) returns (BufferList);
|
|
rpc ListUsers (WorkspaceRequest) returns (UsersList);
|
|
rpc NewBuffer (BufferRequest) returns (WorkspaceResponse);
|
|
rpc RemoveBuffer (BufferRequest) returns (WorkspaceResponse);
|
|
}
|
|
|
|
message Event {
|
|
int32 id = 1;
|
|
optional string body = 2;
|
|
}
|
|
|
|
message WorkspaceRequest {
|
|
string sessionKey = 1;
|
|
}
|
|
|
|
message BufferRequest {
|
|
string sessionKey = 1;
|
|
string path = 2;
|
|
}
|
|
|
|
message WorkspaceResponse {
|
|
bool accepted = 1;
|
|
}
|
|
|
|
message BufferList {
|
|
repeated string path = 1;
|
|
}
|
|
|
|
message UsersList {
|
|
repeated string name = 1;
|
|
}
|
|
|