-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
381 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[package] | ||
name = "ya-healthcheck" | ||
version = "0.1.0" | ||
description = "Node health monitoring" | ||
authors = ["Golem Factory <[email protected]>"] | ||
edition = "2021" | ||
|
||
[dependencies] | ||
ya-service-api-web.workspace = true | ||
ya-client.workspace = true | ||
ya-core-model = { workspace = true, features = ["version"] } | ||
ya-net = { workspace = true, features = ["service"] } | ||
ya-service-api.workspace = true | ||
ya-service-api-interfaces.workspace = true | ||
ya-service-bus = { workspace = true } | ||
|
||
actix-web = "4" | ||
anyhow = "1.0" | ||
chrono = { version = "0.4", features = ["serde"] } | ||
log = "0.4" | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
tokio = { version = "1", features = ["time", "sync"] } | ||
problem_details = "0.6.0" | ||
http = "1.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mod service; | ||
|
||
pub use service::HealthcheckService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use ya_service_api_interfaces::Service; | ||
|
||
mod rest; | ||
|
||
pub struct HealthcheckService; | ||
|
||
impl Service for HealthcheckService { | ||
type Cli = (); | ||
} | ||
|
||
impl HealthcheckService { | ||
pub fn rest<C>(_ctx: &C) -> actix_web::Scope { | ||
rest::web_scope() | ||
} | ||
} |
Oops, something went wrong.