mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
feat: snapshots
This commit is contained in:
parent
741a074464
commit
6fe1b213bd
1 changed files with 10 additions and 0 deletions
|
@ -6,6 +6,9 @@ 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 {
|
||||
|
@ -13,3 +16,10 @@ message Operation {
|
|||
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