contracts/runner/v1/runner.proto
dragonmuffin dragonmuffin 1138a5406c add build parameters
2025-05-01 22:00:59 +05:00

47 lines
837 B
Protocol Buffer

syntax = "proto3";
package runner.v1;
option go_package = "/runner/v1;runnerv1";
import "google/protobuf/duration.proto";
message Instruction {
oneof instruction {
Build build = 1;
Run run = 2;
}
}
message Result {
oneof result {
BuildResult build = 1;
RunResult run = 2;
}
}
message Build {
int32 solution_id = 1; // FIXME: make private
string binding_key = 2;
int32 language = 3;
//string solution = 4;
string solution_uri = 5;
string executable_uri = 6;
}
message BuildResult {
int32 solution_id = 1; // FIXME: make private
int32 status = 2;
string error = 3;
}
message Run {
int32 solution_id = 1; // FIXME: make private
int32 test_id = 2;
string binding_key = 3;
}
message RunResult {
int32 solution_id = 1; // FIXME: make private
int32 test_id = 2;
int32 status = 3;
}