mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
cursor and workspace services
This commit is contained in:
parent
3f49730e7e
commit
b78775239f
2 changed files with 7 additions and 6 deletions
|
@ -1,13 +1,13 @@
|
|||
syntax = "proto2";
|
||||
|
||||
package codemp.cursor;
|
||||
package codemp.cursor_service;
|
||||
import "proto/model/cursor.proto";
|
||||
import "proto/model/user.proto";
|
||||
|
||||
// handle cursor events and broadcast to all users
|
||||
service Cursor {
|
||||
// send cursor movement to server
|
||||
rpc Moved (cursor.CursorEvent) returns (cursor.MovedResponse);
|
||||
rpc Moved (codemp.model.cursor.CursorEvent) returns (codemp.model.cursor.MovedResponse);
|
||||
// attach to a workspace and receive cursor events
|
||||
rpc Listen (codemp.model.user.UserIdentity) returns (stream cursor.CursorEvent);
|
||||
rpc Listen (codemp.model.user.UserIdentity) returns (stream codemp.model.cursor.CursorEvent);
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
syntax = "proto2";
|
||||
|
||||
package codemp.workspace_service;
|
||||
import "proto/model/cursor.proto";
|
||||
import "proto/model/user.proto";
|
||||
|
||||
|
||||
|
@ -58,10 +57,12 @@ service Workspace {
|
|||
|
||||
rpc Attach (AttachRequest) returns (Token);
|
||||
|
||||
rpc ListBuffers (BufferListRequest) returns (Empty);
|
||||
rpc ListBuffers (BufferListRequest) returns (BufferTree);
|
||||
|
||||
rpc ListUsers (UserListRequest) returns (UserList);
|
||||
|
||||
rpc ListBufferUsers (Empty) returns (Empty);
|
||||
|
||||
rpc Join (JoinRequest) returns (Token);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue