Skip to content

Commit

Permalink
feat: added DataType & removed unneeded types
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-goetz committed Aug 22, 2024
1 parent e36e386 commit cfd3d61
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 27 deletions.
7 changes: 2 additions & 5 deletions external/action.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ message ActionLogoffRequest {
message ActionLogoffResponse {}

message ActionTransferRequest {
repeated Runtime2RuntimeFunctionDefinition runtime2runtimeFunctionDefinition = 1;
repeated RuntimeFunctionDefinition runtimeFunctionDefinition = 2;
repeated RuntimeParameterDefinition runtimeParameterDefinition = 3;
repeated FunctionDefinition functionDefinition = 4;
repeated ParameterDefinition parameterDefinition = 5;
repeated RuntimeFunctionDefinition function_definition = 2;
repeated RuntimeParameterDefinition parameter_definition = 3;
}

message ActionTransferResponse {
Expand Down
22 changes: 9 additions & 13 deletions external/definitions.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ syntax = "proto3";

package external;

message Runtime2RuntimeFunctionDefinition {
int32 id = 1;
int32 runtime_id = 2;
int32 runtime_function_id = 3;
}

message RuntimeFunctionDefinition {
int32 id = 1;
int32 return_type = 2;
Expand All @@ -20,15 +14,17 @@ message RuntimeParameterDefinition {
string name = 4;
}

message FunctionDefinition {
message DataType {
int32 id = 1;
int32 runtime_function_id = 2;
EDataType type = 2;
int32 return_type = 3;
int32 parent = 4;
}

message ParameterDefinition {
int32 id = 1;
int32 function_id = 2;
int32 type = 3;
string name = 4;
enum EDataType {
PRIMITIVE = 0;
TYPE = 1;
OBJECT = 2;
DATATYPE = 3;
FUNCTION = 4;
}
16 changes: 7 additions & 9 deletions external/transfer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@ import "definitions.proto";

package external;

message Information {
message InformationRequest {
string identifier = 1;
repeated RuntimeFunctionDefinition function_definition = 2;
repeated RuntimeParameterDefinition parameter_definition = 3;
}

oneof message_type {
Runtime2RuntimeFunctionDefinition runtime2RuntimeFunctionDefinition = 2;
RuntimeFunctionDefinition runtimeFunctionDefinition = 3;
RuntimeParameterDefinition runtimeParameterDefinition = 4;
FunctionDefinition functionDefinition = 5;
ParameterDefinition parameterDefinition = 6;
}
message InformationResponse {
bool success = 1;
}

service ActionTransferService {
rpc TransferInformation(stream Information) returns (stream Information);
rpc Transfer (stream InformationRequest) returns (InformationRequest);
}

0 comments on commit cfd3d61

Please sign in to comment.