updated buffer proto with buffer metadata and buffer struct

This commit is contained in:
frelodev 2023-12-03 19:58:21 +01:00
parent a3ed66521c
commit f687fcb1ad

View file

@ -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 {}