diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-20 19:30:40 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-20 19:30:40 +0200 |
| commit | 966a80c4199a49898cc7d8641012d520ce6b2efa (patch) | |
| tree | 51029ff75842090fd1eecbea97b6f7c447e3dea9 /crates/turtle/proto/control.proto | |
| parent | chore(server): Remove warnings (diff) | |
| download | atuin-966a80c4199a49898cc7d8641012d520ce6b2efa.zip | |
chore: Commit
Diffstat (limited to 'crates/turtle/proto/control.proto')
| -rw-r--r-- | crates/turtle/proto/control.proto | 33 |
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; +} |
