DEVELOPMENT ENVIRONMENT

~liljamo/emerwen

ref: 06ffd5a5e2ea1a4fbc46bf91352145e31d379d7e emerwen/proto/workertomaster.proto -rw-r--r-- 455 bytes
06ffd5a5Jonni Liljamo feat: move proto files to root, rename services 9 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 {
    uint32 id = 1;
    shared.TargetState state = 2;
}