diff --git a/src/graphql/node.rs b/src/graphql/node.rs index eb9489b..d66a0fe 100644 --- a/src/graphql/node.rs +++ b/src/graphql/node.rs @@ -21,8 +21,6 @@ use review_database as database; use roxy::Process as RoxyProcess; use serde::{Deserialize, Serialize}; -pub type PortNumber = u16; - #[derive(Default)] pub(super) struct NodeQuery; @@ -242,40 +240,6 @@ impl NodeTotalCount { } } -#[derive(Debug, SimpleObject, Serialize, Deserialize, Clone)] -#[graphql(complex)] -struct HogConfig { - #[graphql(skip)] - giganto_ip: Option, - giganto_port: Option, - active_protocols: Option>, - active_sources: Option>, -} - -#[ComplexObject] -impl HogConfig { - async fn giganto_ip(&self) -> Option { - self.giganto_ip.as_ref().map(ToString::to_string) - } -} - -#[derive(Debug, SimpleObject, Serialize, Deserialize, Clone)] -#[graphql(complex)] -struct PigletConfig { - #[graphql(skip)] - giganto_ip: Option, - giganto_port: Option, - log_options: Option>, - http_file_types: Option>, -} - -#[ComplexObject] -impl PigletConfig { - async fn giganto_ip(&self) -> Option { - self.giganto_ip.as_ref().map(ToString::to_string) - } -} - #[derive(Clone, Deserialize, Serialize, SimpleObject, PartialEq)] pub struct AgentSnapshot { kind: AgentKind,