Skip to content

Commit

Permalink
Merge pull request #18 from code0-tech/feat/add-missing-action-messanges
Browse files Browse the repository at this point in the history
Added Missing Aquila Services
  • Loading branch information
raphael-goetz authored Dec 6, 2024
2 parents 4d01e5c + 8631773 commit 269bdd6
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion build/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ fn main() -> Result<()> {
"flow.proto",
"action.proto",
"transfer.proto",
"ping.proto"
"ping.proto",
"action_execute.proto"
];

let inclusions = &[
Expand Down
34 changes: 34 additions & 0 deletions proto/aquila/action_execute.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
syntax = "proto3";

option ruby_package = "Tucana::Aquila";

package aquila;

message ActionCallRequest {
string identifier = 1;
repeated string parameters = 2;
}

message ActionCallResponse {
string execution_identifier = 1;
}

message ActionResult {
repeated string result = 1;
}

message ActionResultRequest {
string execution_identifier = 1;
}

message ActionResultResponse {
optional ActionResult action_result = 1;
}

service ActionCallService {
rpc Call (ActionCallRequest) returns (ActionCallResponse);
}

service ActionResultService {
rpc GetResult (ActionResultRequest) returns (ActionResultResponse);
}
12 changes: 12 additions & 0 deletions proto/aquila/transfer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ message InformationResponse {
bool success = 1;
}

message ActionExecuteRequest {
string execution_identifier = 1;
string function_identifier = 2;
repeated string parameters = 3;
}

message ActionExecuteResponse {
string execution_identifier = 1;
repeated string result = 2;
}

service ActionTransferService {
rpc Transfer (stream InformationRequest) returns (InformationResponse);
rpc Execute (stream ActionExecuteRequest) returns (stream ActionExecuteResponse);
}

0 comments on commit 269bdd6

Please sign in to comment.