feat: Implement NginxHandler with reload, stop, validate, and config management methods

This commit is contained in:
GW_MC
2026-04-11 07:32:20 +00:00
parent a023cbc082
commit e831640540
6 changed files with 334 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ use crate::connector::master::{MasterConnector, MasterConnectorTrait, ssh::SshMa
mod cli;
mod config;
mod connector;
mod service;
#[tokio::main]
async fn main() {
@@ -60,13 +61,13 @@ async fn main() {
}
// send a dummy heartbeat to verify the connection is working
let client = master_connector.get_client();
let mut client = master_connector.get_client().lock().await.clone();
let request = nxmesh_proto::HealthReport {
..Default::default()
};
match client.lock().await.report_health(request).await {
match client.report_health(request).await {
Ok(_) => info!("Successfully sent health report to master."),
Err(e) => {
error!("Failed to send health report to master: {}", e);