You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
523 B
Protocol Buffer
29 lines
523 B
Protocol Buffer
syntax = "proto3";
|
|
package grpc;
|
|
|
|
option go_package = "internal/pkg/grpc";
|
|
|
|
service monitoring {
|
|
rpc ReactorStatusHandler(ReactorStatusPing) returns (ReactorStatusResponse);
|
|
}
|
|
|
|
message ReactorStatusResponse {
|
|
int32 id = 1;
|
|
}
|
|
|
|
message ReactorStatusPing {
|
|
int32 id = 1;
|
|
repeated Device devices = 2;
|
|
}
|
|
|
|
enum Status {
|
|
DEAD = 0; // connected but not responding
|
|
ALIVE = 1; // actively responding
|
|
UNKOWN = 2; // Disconnected
|
|
}
|
|
|
|
message Device {
|
|
int32 addr = 1; // i2c addr
|
|
Status status = 2;
|
|
}
|