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