feat: snapshots

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

View file

@ -6,6 +6,9 @@ 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 {
@ -13,3 +16,10 @@ message Operation {
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;
}