-
Notifications
You must be signed in to change notification settings - Fork 0
/
protos.proto
61 lines (51 loc) · 1.04 KB
/
protos.proto
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
syntax = "proto3";
//import "google/protobuf/empty.proto";
import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";
package alise;
//reply HelloReply
message HelloRequest {
uint32 message = 1;
}
message HelloReply {
string message = 1;
}
//reply Timestamp
message TimeRequest {
}
message NtpStatus {
bool isNtpEnabled = 1;
}
message HealthQuery {
bool query = 1;
}
message Health {
// code bits: 0 - there's some errors
// 1 - adminja exists
// 2 - core exists
// 3 - ninja exists
// 4 - vasya exists
// 5 - petya exists
// 8-10 - adminja status:
// 000 - not working (none)
// 001 - not installed
// 010 - starting
// 011 - need to merge settings
// 100 - unknown status
// 101 - stopping
// 110 - stopped
// 111 - unknown status
// 11-13 - core status
// 14-16 - ninja status
// 17-19 - vasya status
// 20-22 - petya status
uint32 code = 1;
string Desc = 2;
}
message PowerStatus {
uint32 PWRIN = 1;
}
message PackedMessage {
string message = 1;
google.protobuf.Any content = 2;
}