harmony/harmony-rs/fqm/src/main.rs

21 lines
569 B
Rust

use fqm::{inventory::get_inventory, topology::fqm_topology};
use harmony::{
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 topology = fqm_topology();
let maestro = Maestro::new(get_inventory(), topology.clone());
let score = OPNSenseDhcpScore::new(topology);
let result = maestro.interpret(score).await.unwrap();
info!("{result}");
}).await.unwrap();
}