syntax = "proto3";
package emerwen.workertomaster;
import "google/protobuf/empty.proto";
import "shared/target.proto";
service WorkerToMaster {
rpc GetTargets (google.protobuf.Empty) returns (TargetsResponse);
rpc SetTargetState (SetTargetStateRequest) returns (google.protobuf.Empty);
}
message TargetsResponse {
repeated shared.Target targets = 1;
}
message SetTargetStateRequest {
string id = 1;
shared.TargetState state = 2;
}