Function t2plugin::output_strings
source · pub fn output_strings<T: AsRef<str>>(strings: &[T])
Expand description
Appends a list of strings to Tranalyzer2 output buffer.
This function can be called in the T2Plugin::on_flow_terminate
method to append a
repetitive string field to the output flow file.
Example
struct HttpPlugin {
...
cookies: Vec<String>,
}
impl T2Plugin for HttpPlugin {
...
#[allow(unused_variables)]
fn on_flow_terminate(&mut self, flow: &mut Flow) {
// output the HTTP cookies in a repetitive bt_string column
output_strings(&self.cookies);
}
}