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

3 years ago
syntax = "proto3";
package grpc;
option go_package = "internal/pkg/grpc";
service monitoring {
rpc ReactorStatusHandler(ReactorStatusPing) returns (ReactorStatusResponse);
3 years ago
}
message ReactorStatusResponse {
int32 id = 1;
3 years ago
}
message ReactorStatusPing {
int32 id = 1;
repeated Device devices = 2;
}
enum Status {
2 years ago
DEAD = 0; // connected but not responding
ALIVE = 1; // actively responding
UNKOWN = 2; // Disconnected
}
message Device {
2 years ago
int32 addr = 1; // i2c addr
Status status = 2;
3 years ago
}