feat: snapshots

This commit is contained in:
frelodev 2024-01-26 21:39:21 +01:00
parent 741a074464
commit 6fe1b213bd

View file

@ -6,10 +6,20 @@ package buffer_service;
service Buffer { service Buffer {
// attach to a buffer and receive operations // attach to a buffer and receive operations
rpc Attach (stream Operation) returns (stream Operation); rpc Attach (stream Operation) returns (stream Operation);
rpc Snapshot(SnapshotRequest) returns (SnapshotResponse);
} }
message Operation { message Operation {
required bytes data = 1; required bytes data = 1;
optional string user = 2; optional string user = 2;
optional string path = 3; optional string path = 3;
}
message SnapshotRequest {
required string path = 1;
}
message SnapshotResponse {
required string content = 1;
} }