mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-23 05:14:54 +01:00
updated buffer proto with buffer metadata and buffer struct
This commit is contained in:
parent
a3ed66521c
commit
f687fcb1ad
1 changed files with 16 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package codemp.buffer;
|
||||
package buffer;
|
||||
import "proto/user.proto";
|
||||
|
||||
// handle buffer changes, keep in sync users
|
||||
service Buffer {
|
||||
|
@ -14,6 +15,20 @@ service Buffer {
|
|||
rpc Sync (BufferPayload) returns (BufferResponse);
|
||||
}
|
||||
|
||||
message BufferView {
|
||||
int32 id = 1;
|
||||
|
||||
BufferMetadata metadata = 2;
|
||||
}
|
||||
|
||||
message BufferMetadata {
|
||||
string name = 2;
|
||||
string path = 3;
|
||||
uint64 created = 4; // unix timestamp
|
||||
repeated user.UserIdentity attached_users = 5;
|
||||
}
|
||||
|
||||
|
||||
// empty request
|
||||
message BufferCreateResponse {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue