mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-26 08:54:49 +01:00
alemi
1cf17dc151
reuse as much as possible, keep rpc messages close with their rpc, helper struct for uuid with into() and from(). also replaced the simple things, such as imports and struct fields
20 lines
373 B
Protocol Buffer
20 lines
373 B
Protocol Buffer
syntax = "proto2";
|
|
|
|
import "common.proto";
|
|
|
|
package buffer;
|
|
|
|
// handle buffer changes, keep in sync users
|
|
service Buffer {
|
|
// attach to a buffer and receive operations
|
|
rpc Attach (stream Operation) returns (stream BufferEvent);
|
|
}
|
|
|
|
message Operation {
|
|
required bytes data = 1;
|
|
}
|
|
|
|
message BufferEvent {
|
|
required Operation op = 1;
|
|
required common.Identity user = 2;
|
|
}
|