feat: Refactored harmony into a workspace with independent modules per client, completed RusshClient test_connection implementation. Needs refactoring though

This commit is contained in:
jeangab
2024-09-06 16:10:06 -04:00
parent cc01ec5fe5
commit 8592a3bc36
14 changed files with 116 additions and 46 deletions

View File

@@ -0,0 +1,22 @@
use fqm::inventory::get_inventory;
use harmony::{
domain::{
inventory::{Inventory, InventoryFilter},
maestro::Maestro,
},
modules::opnsense_dhcp::OPNSenseDhcpScore,
};
use log::info;
#[tokio::main]
async fn main() {
env_logger::init();
tokio::spawn(async move {
info!("FQM Harmony Starting");
let maestro = Maestro::new(get_inventory());
let score = OPNSenseDhcpScore::new(InventoryFilter::new(vec![]));
let result = maestro.interpret(score).await.unwrap();
info!("{result}");
}).await;
}