forked from NationTech/harmony
feat: Refactored harmony into a workspace with independent modules per client, completed RusshClient test_connection implementation. Needs refactoring though
This commit is contained in:
22
harmony-rs/fqm/src/main.rs
Normal file
22
harmony-rs/fqm/src/main.rs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user