DEVELOPMENT ENVIRONMENT

~liljamo/emerwen-proto

ref: 94e8fb6ed2c8978c2b619e16d8492cf41ff9d07f emerwen-proto/proto/shared/target.proto -rw-r--r-- 440 bytes
94e8fb6eJonni Liljamo feat: go mod 4 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
24
25
syntax = "proto3";
package emerwen.shared;

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

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;
}