Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Missing Aquila Services #18

Merged
merged 5 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {
raphael-goetz marked this conversation as resolved.
Show resolved Hide resolved
string identifier = 1;
repeated string parameters = 2;
}

message ActionCallResponse {
raphael-goetz marked this conversation as resolved.
Show resolved Hide resolved
string execution_identifier = 1;
}

message ActionResult {
repeated string result = 1;
}

message ActionResultRequest {
string execution_identifier = 1;
}

message ActionResultResponse {
raphael-goetz marked this conversation as resolved.
Show resolved Hide resolved
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 {
raphael-goetz marked this conversation as resolved.
Show resolved Hide resolved
string execution_identifier = 1;
string function_identifier = 2;
repeated string parameters = 3;
}

message ActionExecuteResponse {
raphael-goetz marked this conversation as resolved.
Show resolved Hide resolved
string execution_identifier = 1;
repeated string result = 2;
}

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