codemp/proto/workspace_service.proto

18 lines
810 B
Protocol Buffer
Raw Normal View History

2023-12-18 23:36:15 +01:00
syntax = "proto2";
package workspace_service;
import "user.proto";
import "files.proto";
2024-01-01 23:34:59 +01:00
import "workspace.proto";
2023-12-18 23:36:15 +01:00
service Workspace {
2024-01-01 23:34:59 +01:00
rpc Attach (workspace.AttachRequest) returns (workspace.Token);
rpc LeaveWorkspace (workspace.WorkspaceDetails) returns (workspace.Empty);
rpc CreateWorkspace (workspace.WorkspaceDetails) returns (workspace.Empty);
rpc CreateBuffer (workspace.BufferPayload) returns (workspace.Empty);
2024-01-01 23:34:59 +01:00
rpc ListBuffers (workspace.BufferListRequest) returns (files.BufferTree);
rpc ListUsers (workspace.UserListRequest) returns (workspace.UserList);
rpc ListBufferUsers (workspace.BufferPayload) returns (workspace.UserList); //TODO discuss
2024-01-01 23:34:59 +01:00
rpc Join (workspace.JoinRequest) returns (workspace.Token);
rpc Delete (workspace.BufferPayload) returns (workspace.Empty); //deletes buffer
}