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

draft: add leases endpoint #54

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
20 changes: 12 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion bin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ async fn start(config: cli::Config) -> Result<()> {
debug!("starting database");
let ip_mgr = Arc::new(IpManager::new(SqliteDb::new(database_url).await?)?);
// start external api for healthchecks
let api = ExternalApi::new(config.external_api, Arc::clone(&ip_mgr));
let api = ExternalApi::new(
config.external_api,
Arc::clone(&dhcp_cfg),
Arc::clone(&ip_mgr),
);
// start v4 server
debug!("starting v4 server");
let mut v4: Server<v4::Message> =
Expand Down
4 changes: 4 additions & 0 deletions external-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@ license = "MPL-2.0"
[dependencies]
dora-core = { path = "../dora-core" }
ip-manager = { path = "../libs/ip-manager" }
config = { path = "../libs/config" }

# libs
anyhow = { workspace = true }
axum = "0.7.5"
chrono = "0.4.38"
hex = "0.4.3"
tokio = { workspace = true }
tracing-futures = { workspace = true }
tracing = { workspace = true }
parking_lot = "0.12"
serde = { workspace = true }
serde_json = { workspace = true }
prometheus = { workspace = true }
ipnet = { workspace = true }


[dev-dependencies]
Expand Down
Loading
Loading