2019-09-24 21:00:11 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package go.micro.runtime;
|
|
|
|
|
|
|
|
service Runtime {
|
|
|
|
rpc Create(CreateRequest) returns (CreateResponse) {};
|
|
|
|
rpc Delete(DeleteRequest) returns (DeleteResponse) {};
|
|
|
|
}
|
|
|
|
|
|
|
|
message Service {
|
|
|
|
// name of the service
|
|
|
|
string name = 1;
|
|
|
|
// git url of the source
|
|
|
|
string source = 2;
|
|
|
|
// local path of the source
|
|
|
|
string path = 3;
|
|
|
|
// command to execute
|
2019-11-19 22:36:29 +03:00
|
|
|
repeated string exec = 4;
|
2019-09-24 21:00:11 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message CreateRequest {
|
|
|
|
Service service = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateResponse {}
|
|
|
|
|
|
|
|
message DeleteRequest {
|
|
|
|
Service service = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteResponse {}
|