Initial commit

This commit is contained in:
Nils Andreas Svee committed 2022-08-27 16:27:15 +02:00
commit 2644b17818
9 files changed
+720

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
use std::env;
#[allow(dead_code)]
pub(crate) struct Config {
pub(crate) download_interface: String,
pub(crate) upload_interface: String,
}
impl Config {
pub fn new() -> Self {
Self {
download_interface: env::var("DOWNLOAD_INTERFACE")
.expect("A download interface is required"),
upload_interface: env::var("UPLOAD_INTERFACE").expect("A upload interface is required"),
}
}
}