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 {
|
message WorkspaceMessage {
|
||||||
required int32 id = 1;
|
required int32 id = 1; //unused???
|
||||||
}
|
}
|
||||||
|
|
||||||
message JoinRequest {
|
message JoinRequest {
|
||||||
|
@ -65,4 +65,8 @@ message BufferListRequest{
|
||||||
|
|
||||||
message UserList {
|
message UserList {
|
||||||
repeated user.UserIdentity users = 1;
|
repeated user.UserIdentity users = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message WorkspaceDetails{
|
||||||
|
required int32 id=1;
|
||||||
}
|
}
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue