DEVELOPMENT ENVIRONMENT

~liljamo/emerwen-proto

ref: 8eb131d0c72e7d9c7e31cd421a7078646c2b4412 emerwen-proto/proto/workertomaster.proto -rw-r--r-- 455 bytes
8eb131d0Jonni Liljamo feat: delete worker and target, msg field in responses 3 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
}