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 postsuper;
47pub mod proxymap;
48pub mod qmgr;
49pub mod relay;
50pub mod sendmail;
51pub mod smtp;
52pub mod smtpd;
53pub mod trivial_rewrite;
54pub mod virtual_parser;
55
56pub use bounce::BounceParser;
58pub use cleanup::CleanupParser;
59pub use error::ErrorParser;
60pub use local::LocalParser;
61pub use master::MasterParser;
62pub use postfix_script::PostfixScriptParser;
63pub use postmap::PostmapParser;
64pub use postsuper::PostsuperParser;
65pub use qmgr::QmgrParser;
66pub use relay::RelayParser;
67pub use smtp::SmtpParser;
68pub use smtpd::SmtpdParser;
69pub use virtual_parser::VirtualParser;