mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-23 05:14:54 +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";
|
||||
|
||||
|
||||
|
@ -54,14 +53,16 @@ message UserListRequest{}
|
|||
service Workspace {
|
||||
|
||||
//
|
||||
rpc Create (BufferPayload) returns (Empty);
|
||||
rpc Create (BufferPayload) returns (Empty);
|
||||
|
||||
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