aboutsummaryrefslogtreecommitdiffstats
path: root/crates/daemon/proto/control.proto
blob: 47a7b8b2344562a9a08dc56bed1bee5969ef7b14 (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
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);
}

message ForceSyncRequest {}
message ForceSyncReply {
  bool accepted = 1;
}

message StatusRequest {}
message StatusReply {
  bool healthy = 1;
  string version = 2;
  uint32 pid = 3;
  uint32 protocol = 4;
}