mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
feat: LeaveWorkspace, CreateWorkspace, ListBufferUsers
This commit is contained in:
parent
f7bd5849be
commit
6a061ca432
2 changed files with 13 additions and 3 deletions
|
@ -16,7 +16,7 @@ message WorkspaceUserList {
|
|||
}
|
||||
|
||||
message WorkspaceMessage {
|
||||
required int32 id = 1;
|
||||
required int32 id = 1; //unused???
|
||||
}
|
||||
|
||||
message JoinRequest {
|
||||
|
@ -66,3 +66,7 @@ message BufferListRequest{
|
|||
message UserList {
|
||||
repeated user.UserIdentity users = 1;
|
||||
}
|
||||
|
||||
message WorkspaceDetails{
|
||||
required int32 id=1;
|
||||
}
|
|
@ -33,20 +33,26 @@ import "workspace.proto";
|
|||
|
||||
service Workspace {
|
||||
|
||||
rpc Create (workspace.BufferPayload) returns (workspace.Empty);
|
||||
|
||||
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 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 Delete (workspace.BufferPayload) returns (workspace.Empty); //deletes buffer
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue