Skip to content

Commit 269bdd6

Browse files
Merge pull request #18 from code0-tech/feat/add-missing-action-messanges
Added Missing Aquila Services
2 parents 4d01e5c + 8631773 commit 269bdd6

File tree

4 files changed

+49
-2
lines changed

4 files changed

+49
-2
lines changed

build/rust/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/rust/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ fn main() -> Result<()> {
1010
"flow.proto",
1111
"action.proto",
1212
"transfer.proto",
13-
"ping.proto"
13+
"ping.proto",
14+
"action_execute.proto"
1415
];
1516

1617
let inclusions = &[

proto/aquila/action_execute.proto

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
syntax = "proto3";
2+
3+
option ruby_package = "Tucana::Aquila";
4+
5+
package aquila;
6+
7+
message ActionCallRequest {
8+
string identifier = 1;
9+
repeated string parameters = 2;
10+
}
11+
12+
message ActionCallResponse {
13+
string execution_identifier = 1;
14+
}
15+
16+
message ActionResult {
17+
repeated string result = 1;
18+
}
19+
20+
message ActionResultRequest {
21+
string execution_identifier = 1;
22+
}
23+
24+
message ActionResultResponse {
25+
optional ActionResult action_result = 1;
26+
}
27+
28+
service ActionCallService {
29+
rpc Call (ActionCallRequest) returns (ActionCallResponse);
30+
}
31+
32+
service ActionResultService {
33+
rpc GetResult (ActionResultRequest) returns (ActionResultResponse);
34+
}

proto/aquila/transfer.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ message InformationResponse {
1616
bool success = 1;
1717
}
1818

19+
message ActionExecuteRequest {
20+
string execution_identifier = 1;
21+
string function_identifier = 2;
22+
repeated string parameters = 3;
23+
}
24+
25+
message ActionExecuteResponse {
26+
string execution_identifier = 1;
27+
repeated string result = 2;
28+
}
29+
1930
service ActionTransferService {
2031
rpc Transfer (stream InformationRequest) returns (InformationResponse);
32+
rpc Execute (stream ActionExecuteRequest) returns (stream ActionExecuteResponse);
2133
}

0 commit comments

Comments
 (0)