mirror of
https://github.com/hexedtech/codemp.git
synced 2024-10-23 02:09:20 +02:00
alemi
ebbca24a99
working on this was really hard, so i'm making simple things first. removed almost everything except bare buffer changes, and not even done in a smart way, but should be a working PoC? now trying to make a working client to test it out and actually work on a real prototype
27 lines
472 B
Protocol Buffer
27 lines
472 B
Protocol Buffer
syntax = "proto3";
|
|
package buffer;
|
|
|
|
service Buffer {
|
|
rpc Attach (BufferPayload) returns (stream RawOp);
|
|
rpc Edit (OperationRequest) returns (BufferResponse);
|
|
rpc Create (BufferPayload) returns (BufferResponse);
|
|
}
|
|
|
|
message RawOp {
|
|
string opseq = 1;
|
|
}
|
|
|
|
message OperationRequest {
|
|
string path = 1;
|
|
string hash = 2;
|
|
string opseq = 3;
|
|
}
|
|
|
|
message BufferPayload {
|
|
string path = 2;
|
|
optional string content = 3;
|
|
}
|
|
|
|
message BufferResponse {
|
|
bool accepted = 3;
|
|
}
|