DEVELOPMENT ENVIRONMENT

~liljamo/emerwen

ref: 91b99511153d9e5adb1ffba835cb0706a54676f0 emerwen/proto/shared/target.proto -rw-r--r-- 369 bytes
91b99511Jonni Liljamo feat(master): change to protocol Worker type 13 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
syntax = "proto3";
package emerwen.shared;

message Target {
    uint32 id = 1;
    string addr = 2;
    uint32 interval = 3;
    oneof method {
        MethodPing ping = 4;
        MethodGET get = 5;
    }

    message MethodPing {}
    message MethodGET {
        repeated uint32 ok_codes = 1;
    }
}

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