diff --git a/proto/buffer_service.proto b/proto/buffer_service.proto index 96ea355..d7d989f 100644 --- a/proto/buffer_service.proto +++ b/proto/buffer_service.proto @@ -6,10 +6,20 @@ package buffer_service; service Buffer { // attach to a buffer and receive operations rpc Attach (stream Operation) returns (stream Operation); + + rpc Snapshot(SnapshotRequest) returns (SnapshotResponse); + } message Operation { required bytes data = 1; optional string user = 2; optional string path = 3; +} + +message SnapshotRequest { + required string path = 1; +} +message SnapshotResponse { + required string content = 1; } \ No newline at end of file