Skip to content

Commit

Permalink
feat: synchronize GrpcConfig with proto and add phase in AppResponse (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
duonganhthu43 committed Aug 8, 2023
1 parent 4abce4e commit 7731dcb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
6 changes: 5 additions & 1 deletion dozer-types/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,13 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
".dozer.cloud.SnowflakeConfig",
"crate::ingestion_types::SnowflakeConfig",
)
.extern_path(
".dozer.cloud::grpc_config::Schemas",
"crate::ingestion_types::GrpcConfigSchemas",
)
.extern_path(
".dozer.cloud.GrpcConfig",
"crate::models::connection::GrpcConfig",
"crate::ingestion_types::GrpcConfig",
)
.extern_path(
".dozer.cloud.EthereumConfig",
Expand Down
7 changes: 6 additions & 1 deletion dozer-types/protos/cloud.proto
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,16 @@ message GenerateYamlResponse {

repeated string endpoints = 3;
}

message DeploymentInfo {
uint32 deployment = 1;
string phase = 2;
optional string last_error = 3;
}
message AppResponse {
string app_id = 1;
AppConfig app = 2;
optional string repository_url = 3;
repeated DeploymentInfo deployments = 4;
}

message ListAppRequest {
Expand Down
14 changes: 6 additions & 8 deletions dozer-types/protos/cloud_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,15 @@ message PostgresConfig {
}

message GrpcConfig {
string host = 3;
uint32 port = 4;
string schemas = 5;
}

message GrpcConfigSchemas {
string host = 1;
uint32 port = 2;
oneof schemas {
string Inline = 1;
string Path = 2;
string Inline = 3;
string Path = 4;
}
string adapter = 5;
}

message KafkaConfig {
string broker = 1;
string topic = 2;
Expand Down

0 comments on commit 7731dcb

Please sign in to comment.