diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-20 17:54:34 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-20 17:54:34 +0200 |
| commit | 6bd2b80be51a8623640fbd77afa1da09289e40cc (patch) | |
| tree | 8fa76fc78e27a4f3d6f57af07805a83e9877f0ad /crates/daemon/proto | |
| parent | chore: Commit (diff) | |
| download | atuin-6bd2b80be51a8623640fbd77afa1da09289e40cc.zip | |
chore: All compiles
Diffstat (limited to '')
| -rw-r--r-- | crates/daemon/proto/control.proto | 10 | ||||
| -rw-r--r-- | crates/daemon/proto/history.proto | 17 |
2 files changed, 27 insertions, 0 deletions
diff --git a/crates/daemon/proto/control.proto b/crates/daemon/proto/control.proto index 47a7b8b2..a8026cb8 100644 --- a/crates/daemon/proto/control.proto +++ b/crates/daemon/proto/control.proto @@ -7,6 +7,9 @@ service Control { // Query the daemon for it's status. rpc Status(StatusRequest) returns (StatusReply); + + // Query the daemon about used paths. + rpc Paths(PathsRequest) returns (PathsReply); } message ForceSyncRequest {} @@ -21,3 +24,10 @@ message StatusReply { uint32 pid = 3; uint32 protocol = 4; } + +message PathsRequest {} +message PathsReply { + string config = 1; + string db = 2; + string socket = 3; +} diff --git a/crates/daemon/proto/history.proto b/crates/daemon/proto/history.proto index 46a41a5e..850b16b9 100644 --- a/crates/daemon/proto/history.proto +++ b/crates/daemon/proto/history.proto @@ -4,7 +4,11 @@ package history; service History { rpc StartHistory(StartHistoryRequest) returns (StartHistoryReply); rpc EndHistory(EndHistoryRequest) returns (EndHistoryReply); + rpc TailHistory(TailHistoryRequest) returns (stream TailHistoryReply); + + // Request history from the daemon + rpc History(HistoryRequest) returns (HistoryReply); } message StartHistoryRequest { @@ -59,3 +63,16 @@ message HistoryEntry { int64 exit = 9; int64 duration = 10; } + +message Range { + uint64 start = 1; + uint64 end = 2; +} + +message HistoryRequest { + string session = 1; + optional Range range = 2; +} +message HistoryReply { + repeated HistoryEntry entries = 1; +} |
