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.

30 lines
496 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;
// new devices
repeated Device devices = 2;
}
enum Status {
DEAD = 0;
ALIVE = 1;
UNKOWN = 2;
}
message Device {
2 years ago
int32 addr = 1; // i2c addr
Status status = 2; // most recent status
3 years ago
}