DEVELOPMENT ENVIRONMENT

~liljamo/emerwen-proto

ref: 5d52b9c19a46ca82e0b6504348906f8ef1ed47f1 emerwen-proto/proto/workercontrol.proto -rw-r--r-- 617 bytes
5d52b9c1Jonni Liljamo feat!: remove worker_id from worker message, change msg/cmd to payload 8 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
30
31
32
syntax = "proto3";
package emerwen.workercontrol;

import "shared/target.proto";

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

message WorkerMessage {
    oneof payload {
        RegistrationMessage registration = 1;
        TargetStateMessage target_state = 2;
    }
}

message RegistrationMessage {}

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

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

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