aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-daemon/proto
diff options
context:
space:
mode:
Diffstat (limited to 'crates/atuin-daemon/proto')
-rw-r--r--crates/atuin-daemon/proto/history.proto21
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/atuin-daemon/proto/history.proto b/crates/atuin-daemon/proto/history.proto
index 1172b91b..9fbd3372 100644
--- a/crates/atuin-daemon/proto/history.proto
+++ b/crates/atuin-daemon/proto/history.proto
@@ -18,14 +18,35 @@ message EndHistoryRequest {
message StartHistoryReply {
string id = 1;
+ string version = 2;
+ uint32 protocol = 3;
}
message EndHistoryReply {
string id = 1;
uint64 idx = 2;
+ string version = 3;
+ uint32 protocol = 4;
+}
+
+message StatusRequest {}
+
+message StatusReply {
+ bool healthy = 1;
+ string version = 2;
+ uint32 pid = 3;
+ uint32 protocol = 4;
+}
+
+message ShutdownRequest {}
+
+message ShutdownReply {
+ bool accepted = 1;
}
service History {
rpc StartHistory(StartHistoryRequest) returns (StartHistoryReply);
rpc EndHistory(EndHistoryRequest) returns (EndHistoryReply);
+ rpc Status(StatusRequest) returns (StatusReply);
+ rpc Shutdown(ShutdownRequest) returns (ShutdownReply);
}