2019-01-11 19:33:44 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
message TypedValue {
|
2019-01-12 19:44:29 +00:00
|
|
|
enum Type {
|
|
|
|
String = 0;
|
|
|
|
Number = 1;
|
|
|
|
Object = 2;
|
|
|
|
Boolean = 3;
|
|
|
|
}
|
|
|
|
Type type = 1;
|
|
|
|
string value = 2;
|
2019-01-11 19:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message NewEvalMessage {
|
2019-01-12 19:44:29 +00:00
|
|
|
uint64 id = 1;
|
|
|
|
string function = 2;
|
|
|
|
repeated string args = 3;
|
|
|
|
// Timeout in ms
|
|
|
|
uint32 timeout = 4;
|
2019-01-11 19:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message EvalFailedMessage {
|
2019-01-12 19:44:29 +00:00
|
|
|
uint64 id = 1;
|
|
|
|
enum Reason {
|
|
|
|
Timeout = 0;
|
|
|
|
Exception = 1;
|
|
|
|
Conflict = 2;
|
|
|
|
}
|
|
|
|
Reason reason = 2;
|
|
|
|
string message = 3;
|
2019-01-11 19:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message EvalDoneMessage {
|
2019-01-12 19:44:29 +00:00
|
|
|
uint64 id = 1;
|
|
|
|
TypedValue response = 2;
|
2019-01-11 19:33:44 +00:00
|
|
|
}
|