From f687fcb1ad65158c13710599f0510ef527fce75c Mon Sep 17 00:00:00 2001 From: frelodev Date: Sun, 3 Dec 2023 19:58:21 +0100 Subject: [PATCH] updated buffer proto with buffer metadata and buffer struct --- proto/buffer.proto | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/proto/buffer.proto b/proto/buffer.proto index 23f919f..5e5e719 100644 --- a/proto/buffer.proto +++ b/proto/buffer.proto @@ -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 {}