Refactor proto into single package and update api
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package api.v1;
|
||||
|
||||
option go_package = "git.ohea.xyz/cursorius/server/proto/gen/api/v1;apiv1";
|
||||
|
||||
message GetRunnerOptions {
|
||||
bool clone_source = 2;
|
||||
}
|
||||
|
||||
message GetRunnerRequest {
|
||||
repeated string tags = 1;
|
||||
GetRunnerOptions options = 2;
|
||||
}
|
||||
|
||||
message GetRunnerResponse {
|
||||
int64 runner_id = 1;
|
||||
}
|
||||
|
||||
service GetRunnerService {
|
||||
rpc GetRunner(GetRunnerRequest) returns (GetRunnerResponse) {}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package api.v1;
|
||||
|
||||
option go_package = "git.ohea.xyz/cursorius/server/proto/gen/api/v1;apiv1";
|
||||
|
||||
message RunCommandRequest {
|
||||
int64 runner_id = 1;
|
||||
string command = 2;
|
||||
}
|
||||
|
||||
message RunCommandResponse {
|
||||
int64 return_code = 1;
|
||||
string stdout = 2;
|
||||
string stderr = 3;
|
||||
}
|
||||
|
||||
service RunCommandService {
|
||||
rpc RunCommand(RunCommandRequest) returns (RunCommandResponse) {}
|
||||
}
|
||||
Reference in New Issue
Block a user