Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
sophie-cluml committed Dec 13, 2024
1 parent 649bac0 commit f6e2daa
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions src/graphql/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -242,40 +240,6 @@ impl NodeTotalCount {
}
}

#[derive(Debug, SimpleObject, Serialize, Deserialize, Clone)]
#[graphql(complex)]
struct HogConfig {
#[graphql(skip)]
giganto_ip: Option<IpAddr>,
giganto_port: Option<PortNumber>,
active_protocols: Option<Vec<String>>,
active_sources: Option<Vec<String>>,
}

#[ComplexObject]
impl HogConfig {
async fn giganto_ip(&self) -> Option<String> {
self.giganto_ip.as_ref().map(ToString::to_string)
}
}

#[derive(Debug, SimpleObject, Serialize, Deserialize, Clone)]
#[graphql(complex)]
struct PigletConfig {
#[graphql(skip)]
giganto_ip: Option<IpAddr>,
giganto_port: Option<PortNumber>,
log_options: Option<Vec<String>>,
http_file_types: Option<Vec<String>>,
}

#[ComplexObject]
impl PigletConfig {
async fn giganto_ip(&self) -> Option<String> {
self.giganto_ip.as_ref().map(ToString::to_string)
}
}

#[derive(Clone, Deserialize, Serialize, SimpleObject, PartialEq)]
pub struct AgentSnapshot {
kind: AgentKind,
Expand Down

0 comments on commit f6e2daa

Please sign in to comment.