2023-12-18 23:36:15 +01:00
|
|
|
syntax = "proto2";
|
|
|
|
|
2023-12-29 01:06:28 +01:00
|
|
|
package workspace_service;
|
|
|
|
import "user.proto";
|
2024-01-01 23:29:35 +01:00
|
|
|
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);
|
2023-12-18 23:36:15 +01:00
|
|
|
|
2024-01-25 16:08:35 +01:00
|
|
|
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);
|
2023-12-18 23:36:15 +01:00
|
|
|
|
2024-01-01 23:34:59 +01:00
|
|
|
rpc ListUsers (workspace.UserListRequest) returns (workspace.UserList);
|
2023-12-18 23:36:15 +01:00
|
|
|
|
2024-01-25 16:31:38 +01:00
|
|
|
rpc ListBufferUsers (workspace.BufferPayload) returns (workspace.UserList); //TODO discuss
|
2023-12-18 23:36:15 +01:00
|
|
|
|
2024-01-01 23:34:59 +01:00
|
|
|
rpc Join (workspace.JoinRequest) returns (workspace.Token);
|
2023-12-18 23:36:15 +01:00
|
|
|
|
2024-01-01 23:34:59 +01:00
|
|
|
rpc Delete (workspace.BufferPayload) returns (workspace.Empty); //deletes buffer
|
2023-12-18 23:36:15 +01:00
|
|
|
|
2024-01-25 16:31:38 +01:00
|
|
|
}
|