aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/proto/control.proto
diff options
context:
space:
mode:
Diffstat (limited to 'crates/turtle/proto/control.proto')
-rw-r--r--crates/turtle/proto/control.proto33
1 files changed, 33 insertions, 0 deletions
diff --git a/crates/turtle/proto/control.proto b/crates/turtle/proto/control.proto
new file mode 100644
index 00000000..a8026cb8
--- /dev/null
+++ b/crates/turtle/proto/control.proto
@@ -0,0 +1,33 @@
+syntax = "proto3";
+package control;
+
+service Control {
+ // Tell the daemon to perform a sync operation.
+ rpc ForceSync(ForceSyncRequest) returns (ForceSyncReply);
+
+ // 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 {}
+message ForceSyncReply {
+ bool accepted = 1;
+}
+
+message StatusRequest {}
+message StatusReply {
+ bool healthy = 1;
+ string version = 2;
+ uint32 pid = 3;
+ uint32 protocol = 4;
+}
+
+message PathsRequest {}
+message PathsReply {
+ string config = 1;
+ string db = 2;
+ string socket = 3;
+}