Function t2plugin::output_string

source ·
pub fn output_string<T: AsRef<str>>(string: T)
Expand description

Appends a string to Tranalyzer2 output buffer.

This function can be called in the T2Plugin::on_flow_terminate method to append a string to the output flow file.


struct HttpPlugin {
    host: String,

impl T2Plugin for HttpPlugin {
    fn on_flow_terminate(&mut self, flow: &mut Flow) {
        // output the HTTP host in a bt_string column