aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/proto/control.proto
blob: a8026cb80b56c495dc0b012896b05c64536288b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
}