Function vector::sources::util::build_unix_datagram_source
source ยท pub fn build_unix_datagram_source(
listen_path: PathBuf,
socket_file_mode: Option<u32>,
max_length: usize,
decoder: Decoder,
handle_events: impl Fn(&mut [Event], Option<Bytes>) + Clone + Send + Sync + 'static,
shutdown: ShutdownSignal,
out: SourceSender,
) -> Result<Source>
Expand description
Returns a Source
object corresponding to a Unix domain datagram socket.
Passing in different functions for decoder
and handle_events
can allow
for different source-specific logic (such as decoding syslog messages in the
syslog source).