mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 07:14:50 +01:00
feat: snapshots
This commit is contained in:
parent
741a074464
commit
6fe1b213bd
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue