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.

25 lines
413 B
Protocol Buffer

syntax = "proto3";
package grpc;
option go_package = "internal/pkg/grpc";
service monitoring {
rpc SensorStatusHandler(SensorStatusRequest) returns (SensorStatusResponse);
}
message SensorStatusRequest {
uint32 id = 1;
}
message SensorStatusResponse {
uint32 id = 1;
repeated SensorStatus sensors = 2;
}
message SensorStatus {
int32 addr = 1;
string type = 2;
bool status = 3;
}