postfix_log_parser/components/
mod.rs1use crate::error::ParseError;
6use crate::events::ComponentEvent;
7
8pub trait ComponentParser: Send + Sync {
12 fn parse(&self, message: &str) -> Result<ComponentEvent, ParseError>;
22
23 fn component_name(&self) -> &'static str;
25
26 fn can_parse(&self, _message: &str) -> bool {
30 true
31 }
32}
33
34pub mod anvil;
36pub mod bounce;
37pub mod cleanup;
38pub mod discard;
39pub mod error;
40pub mod local;
41pub mod master;
42pub mod pickup;
43pub mod postfix_script;
44pub mod postlogd;
45pub mod postmap;
46pub mod qmgr;
47pub mod relay;
48pub mod sendmail;
49pub mod smtp;
50pub mod smtpd;
51pub mod trivial_rewrite;
52pub mod virtual_parser;
53pub mod proxymap;
54
55pub use bounce::BounceParser;
57pub use cleanup::CleanupParser;
58pub use error::ErrorParser;
59pub use local::LocalParser;
60pub use master::MasterParser;
61pub use postfix_script::PostfixScriptParser;
62pub use postmap::PostmapParser;
63pub use qmgr::QmgrParser;
64pub use relay::RelayParser;
65pub use smtp::SmtpParser;
66pub use smtpd::SmtpdParser;
67pub use virtual_parser::VirtualParser;