2024-08-19 12:07:21 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package runner.v1;
|
2024-11-01 18:18:45 +00:00
|
|
|
option go_package = "/runner/v1;runnerv1";
|
2024-08-19 12:07:21 +00:00
|
|
|
|
2024-11-01 18:18:45 +00:00
|
|
|
import "google/protobuf/duration.proto";
|
2024-08-19 12:07:21 +00:00
|
|
|
|
2024-11-01 18:18:45 +00:00
|
|
|
message Instruction {
|
|
|
|
oneof instruction {
|
|
|
|
Build build = 1;
|
|
|
|
Run run = 2;
|
|
|
|
}
|
2024-08-19 12:07:21 +00:00
|
|
|
}
|
|
|
|
|
2024-11-01 18:18:45 +00:00
|
|
|
message Result {
|
|
|
|
oneof result {
|
|
|
|
BuildResult build = 1;
|
|
|
|
RunResult run = 2;
|
|
|
|
}
|
2024-08-19 12:07:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Build {
|
2024-11-01 18:18:45 +00:00
|
|
|
int32 solution_id = 1; // FIXME: make private
|
|
|
|
string binding_key = 2;
|
|
|
|
int32 language = 3;
|
|
|
|
string solution = 4;
|
2024-08-19 12:07:21 +00:00
|
|
|
}
|
|
|
|
|
2024-11-01 18:18:45 +00:00
|
|
|
message BuildResult {
|
|
|
|
int32 solution_id = 1; // FIXME: make private
|
|
|
|
int32 status = 2;
|
2024-08-19 12:07:21 +00:00
|
|
|
}
|
|
|
|
|
2024-11-01 18:18:45 +00:00
|
|
|
message Run {
|
|
|
|
int32 solution_id = 1; // FIXME: make private
|
|
|
|
int32 test_id = 2;
|
|
|
|
string binding_key = 3;
|
2024-08-19 12:07:21 +00:00
|
|
|
}
|
|
|
|
|
2024-11-01 18:18:45 +00:00
|
|
|
message RunResult {
|
|
|
|
int32 solution_id = 1; // FIXME: make private
|
|
|
|
int32 test_id = 2;
|
|
|
|
int32 status = 3;
|
2024-08-19 12:07:21 +00:00
|
|
|
}
|