Skip to content

Commit

Permalink
Add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanDeveloper committed Feb 27, 2024
1 parent bbd3b0b commit 04a42b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions heidpi-rust/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
3 changes: 2 additions & 1 deletion heidpi-rust/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
8 changes: 7 additions & 1 deletion heidpi-rust/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 04a42b5

Please sign in to comment.