DEVELOPMENT ENVIRONMENT

~liljamo/emerwen-proto

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

option go_package = "git.src.quest/~liljamo/emerwen-proto/go/proto/shared";

message Target {
    string target_id = 1;
    string addr = 2;
    int32 interval = 3;
    string name = 4;
    Method method = 5;
    repeated int32 ok_codes = 6;
}

enum Method {
    PING = 0;
    GET = 1;
}

enum TargetState {
    DOWN = 0;
    UP = 1;
    UNKNOWN = 2;
}