30 lines
391 B
Protocol Buffer
30 lines
391 B
Protocol Buffer
syntax = "proto3";
|
|
package witProtobuf;
|
|
|
|
enum EventType {
|
|
ADD = 0;
|
|
DELETE = 1;
|
|
POWERON = 2;
|
|
POWEROFF = 3;
|
|
HYBERNATE = 4;
|
|
MIGRATE = 5;
|
|
}
|
|
|
|
|
|
message Result {
|
|
string name = 1;
|
|
string error = 2;
|
|
repeated string snippets = 3;
|
|
}
|
|
|
|
message Event {
|
|
EventType type = 1;
|
|
int32 id = 2;
|
|
Result result = 3;
|
|
string name = 4;
|
|
|
|
string comment = 5;
|
|
string email = 6;
|
|
repeated int64 reps = 7;
|
|
}
|