runtime handler/proto placeholder
This commit is contained in:
57
runtime/service/proto/runtime.proto
Normal file
57
runtime/service/proto/runtime.proto
Normal file
@@ -0,0 +1,57 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package go.micro.runtime;
|
||||
|
||||
service Runtime {
|
||||
rpc Create(CreateRequest) returns (CreateResponse) {};
|
||||
rpc Delete(DeleteRequest) returns (DeleteResponse) {};
|
||||
rpc Update(UpdateRequest) returns (UpdateResponse) {};
|
||||
rpc List(ListRequest) returns (ListResponse) {};
|
||||
}
|
||||
|
||||
message Service {
|
||||
// name of the service
|
||||
string name = 1;
|
||||
// version of the service
|
||||
string version = 2;
|
||||
// git url of the source
|
||||
string source = 3;
|
||||
// local path of the source
|
||||
string path = 4;
|
||||
// command to execute
|
||||
string exec = 5;
|
||||
}
|
||||
|
||||
message Options {
|
||||
// command to pass in
|
||||
string command = 1;
|
||||
// environment to pass in
|
||||
repeated string env = 2;
|
||||
// output to send to
|
||||
string output = 3;
|
||||
}
|
||||
|
||||
message CreateRequest {
|
||||
Service service = 1;
|
||||
Options options = 2;
|
||||
}
|
||||
|
||||
message CreateResponse {}
|
||||
|
||||
message DeleteRequest {
|
||||
Service service = 1;
|
||||
}
|
||||
|
||||
message DeleteResponse {}
|
||||
|
||||
message UpdateRequest {
|
||||
Service service = 1;
|
||||
}
|
||||
|
||||
message UpdateResponse {}
|
||||
|
||||
message ListRequest {}
|
||||
|
||||
message ListResponse {
|
||||
repeated Service services = 1;
|
||||
}
|
Reference in New Issue
Block a user