DEVELOPMENT ENVIRONMENT

~liljamo/emerwen-proto

ref: 0b4a0da3fca7cbc7f171d8c6f4345e94f6551a89 emerwen-proto/proto/workercontrol.proto -rw-r--r-- 531 bytes
0b4a0da3Jonni Liljamo feat!: iteration number whatever, revamp whooo! 5 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
syntax = "proto3";
package emerwen.workercontrol;

import "shared/target.proto";

service WorkerControlService {
    rpc WorkerStream(stream WorkerMessage) returns (stream ServerCommand) {}
}

message WorkerMessage {
    oneof msg {
        TargetStateMessage target_state = 1;
    }
}

message TargetStateMessage {
    string target_id = 1;
    shared.TargetState state = 2;
}

message ServerCommand {
    oneof cmd {
        TargetsCommand targets = 1;
    }
}

message TargetsCommand {
    repeated shared.Target targets = 1;
}