diff --git a/heidpi-rust/src/cli.rs b/heidpi-rust/src/cli.rs index 835257d..6fc2d04 100644 --- a/heidpi-rust/src/cli.rs +++ b/heidpi-rust/src/cli.rs @@ -69,6 +69,7 @@ impl Cli { flow_events, } => { // TODO Handle parameters + // TODO Handle config, should be global accessible let mut v = stream::connect("127.0.0.1:7000").await; } } diff --git a/heidpi-rust/src/logging.rs b/heidpi-rust/src/logging.rs index c1d3478..8794715 100644 --- a/heidpi-rust/src/logging.rs +++ b/heidpi-rust/src/logging.rs @@ -2,12 +2,13 @@ use anyhow::bail; use std::io::prelude::*; use std::{fs::OpenOptions, path::PathBuf}; +// TODO Generate logging struct (Be aware it should generic to be used for daemon, packet, flow and error) struct Logging { } - +// TODO Write file (Be aware when file is opened, don't forget to close it) impl Logging { pub fn write(&self, data: &str, filepath: PathBuf) -> anyhow::Result<()> { let mut file = OpenOptions::new() diff --git a/heidpi-rust/src/process.rs b/heidpi-rust/src/process.rs index 7aef8d1..14bd728 100644 --- a/heidpi-rust/src/process.rs +++ b/heidpi-rust/src/process.rs @@ -2,4 +2,10 @@ use std::net::IpAddr; use serde_json::Value; -pub fn process(json: Value) {} +pub fn process(json: Value) { + // TODO remove risk in ignore + // TODO remove attributes + // TODO remove event types + // TODO get geoip of string (if boolean is set) + // return processed string +}