i want that filter table bs to be Going Away. restful? idk. we speak Devices now.

This commit is contained in:
lda
2026-04-14 01:07:22 +07:00 Unverified
parent 834a56d439
commit 42cdc720a3
9 changed files with 43 additions and 87 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ async fn dispatch_status(req: StatusRequest) -> Result<CommandResult> {
} else {
wakey::get_status(query).await?
};
debug!(rows = status.table.len(), "dispatched status command");
debug!(devices = status.devices.len(), "dispatched status command");
Ok(CommandResult::Status(status))
}
+2 -3
View File
@@ -4,8 +4,7 @@ use std::fmt;
use std::net::IpAddr;
use wakey_core::parse::mac;
use wakey_core::{
DeviceFilters, DeviceInventory, DeviceQuery, DhcpLeaseWithState, InterfaceSummary,
NeighborEntry, Status, WakeResult,
DeviceFilters, DeviceInventory, DeviceQuery, DhcpLeaseWithState, InterfaceSummary, WakeResult,
};
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
@@ -174,7 +173,7 @@ pub enum AgentCommand {
#[derive(Debug, Serialize)]
#[serde(tag = "kind", rename_all = "snake_case")]
pub enum CommandResult {
Status(Status<NeighborEntry>),
Status(DeviceInventory),
Leases { rows: Vec<DhcpLeaseWithState> },
Devs { rows: Vec<InterfaceSummary> },
Inventory(DeviceInventory),