From 966a80c4199a49898cc7d8641012d520ce6b2efa Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 20 Jul 2026 19:30:40 +0200 Subject: chore: Commit --- crates/turtle/proto/control.proto | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 crates/turtle/proto/control.proto (limited to 'crates/turtle/proto/control.proto') 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; +} -- cgit v1.3.1