mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
26 lines
414 B
Protocol Buffer
26 lines
414 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package codemp.cursor;
|
|
|
|
service Cursor {
|
|
rpc Moved (CursorPosition) returns (MovedResponse);
|
|
rpc Listen (UserIdentity) returns (stream CursorPosition);
|
|
}
|
|
|
|
message MovedResponse {}
|
|
|
|
message RowColumn {
|
|
int32 row = 1;
|
|
int32 col = 2;
|
|
}
|
|
|
|
message CursorPosition {
|
|
string user = 1;
|
|
string buffer = 2;
|
|
RowColumn start = 3;
|
|
RowColumn end = 4;
|
|
}
|
|
|
|
message UserIdentity {
|
|
string id = 1;
|
|
}
|