cursor and workspace services

This commit is contained in:
frelodev 2023-12-28 00:21:41 +01:00
parent 3f49730e7e
commit b78775239f
2 changed files with 7 additions and 6 deletions

View file

@ -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);
}

View file

@ -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);
}