codemp-vscode/proto/buffer.proto
alemidev 0151a9e1bd feat: defined some basic protocol
Co-authored-by: f-tlm <f-tlm@users.noreply.github.com>
2022-07-13 01:56:21 +02:00

22 lines
300 B
Protocol Buffer

syntax = "proto3";
package buffer;
service Buffer {
rpc Attach (stream Operation) returns (stream Operation);
}
message Operation {
int64 opId = 1;
enum Action {
RETAIN = 0;
INSERT = 1;
DELETE = 2;
};
Action action = 2;
int32 row = 3;
int32 column = 4;
optional string text = 5;
}