feat: LeaveWorkspace, CreateWorkspace, ListBufferUsers

This commit is contained in:
frelodev 2024-01-25 16:08:35 +01:00
parent f7bd5849be
commit 6a061ca432
2 changed files with 13 additions and 3 deletions

View file

@ -16,7 +16,7 @@ message WorkspaceUserList {
} }
message WorkspaceMessage { message WorkspaceMessage {
required int32 id = 1; required int32 id = 1; //unused???
} }
message JoinRequest { message JoinRequest {
@ -66,3 +66,7 @@ message BufferListRequest{
message UserList { message UserList {
repeated user.UserIdentity users = 1; repeated user.UserIdentity users = 1;
} }
message WorkspaceDetails{
required int32 id=1;
}

View file

@ -33,20 +33,26 @@ import "workspace.proto";
service Workspace { service Workspace {
rpc Create (workspace.BufferPayload) returns (workspace.Empty);
rpc Attach (workspace.AttachRequest) returns (workspace.Token); 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);
rpc ListBuffers (workspace.BufferListRequest) returns (files.BufferTree); rpc ListBuffers (workspace.BufferListRequest) returns (files.BufferTree);
rpc ListUsers (workspace.UserListRequest) returns (workspace.UserList); rpc ListUsers (workspace.UserListRequest) returns (workspace.UserList);
rpc ListBufferUsers (workspace.Empty) returns (workspace.Empty); rpc ListBufferUsers (workspace.BufferPayload) returns (workspace.Empty);
rpc Join (workspace.JoinRequest) returns (workspace.Token); rpc Join (workspace.JoinRequest) returns (workspace.Token);
rpc Delete (workspace.BufferPayload) returns (workspace.Empty); //deletes buffer rpc Delete (workspace.BufferPayload) returns (workspace.Empty); //deletes buffer
} }