DEVELOPMENT ENVIRONMENT

~liljamo/emerwen-proto

ref: 63eb26154b4659b77a2e2da9743d57e717a0b7b0 emerwen-proto/proto/shared/target.proto -rw-r--r-- 450 bytes
63eb2615Jonni Liljamo feat!: swap out uint32 for int32, not a big deal a day 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
syntax = "proto3";
package emerwen.shared;

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

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

message MethodPing {}

message MethodGET {
    repeated int32 ok_codes = 1;
}

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