blob: f1656d737a7d40ec9448e4f0c17d4a878880b94f (
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
34
35
|
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 {
optional string error = 1;
uint32 uploaded = 2;
uint32 downloaded = 3;
}
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;
}
|