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
446 B
Protocol Buffer
29 lines
446 B
Protocol Buffer
syntax = "proto3";
|
|
package grpc;
|
|
|
|
option go_package = "internal/pkg/grpc";
|
|
|
|
service coordinator {
|
|
rpc PingHandler(PingRequest) returns (PingResponse);
|
|
}
|
|
|
|
message PingRequest {
|
|
string id = 1;
|
|
}
|
|
|
|
message PingResponse {
|
|
string id = 1;
|
|
repeated SensorStatus sensorStatus = 2;
|
|
}
|
|
|
|
message SensorStatus {
|
|
string type = 1;
|
|
enum Status {
|
|
ACTIVE = 0;
|
|
SENDING = 1;
|
|
KILLED = 2;
|
|
}
|
|
Status status = 2;
|
|
}
|
|
|