pub trait Plugin {
    const NAME: &'static CStr;
    const DESCRIPTION: &'static CStr;

    fn new(config: &Config) -> Self;
    fn flush(&mut self, tag: &str, data: &[u8]) -> Result<(), Error>;
    fn exit(self) -> Result<(), Error>;
}
Expand description

A trait for Fluent Bit output plugin

Required Associated Constants

The plugin name.

The plugin description.

Required Methods

Creates a new plugin instance.

Handles data passed from Fluent Bit.

data is a MessagePack byte buffer.

Cleans up the plugin instance.

Implementors