codemp-vscode/proto/session.proto

20 lines
382 B
Protocol Buffer

syntax = "proto3";
package session;
service Session {
rpc Authenticate(SessionRequest) returns (SessionResponse);
rpc ListWorkspaces(SessionRequest) returns (WorkspaceList);
}
message SessionRequest {
string sessionKey = 1;
}
message SessionResponse {
string sessionKey = 1;
bool accepted = 2;
}
message WorkspaceList {
repeated string name = 1; // TODO add more fields
}