pub struct PostmapParser { /* private fields */ }
Expand description
POSTMAP组件解析器
基于Postfix POSTMAP工具的真实日志格式开发 POSTMAP工具的特点:
- 管理映射表和数据库
- 文件访问错误处理
- 命令参数验证
- Berkeley DB操作
Implementations§
Source§impl PostmapParser
impl PostmapParser
pub fn new() -> Self
Sourcepub fn parse_line(
&self,
line: &str,
base_event: BaseEvent,
) -> Option<PostmapEvent>
pub fn parse_line( &self, line: &str, base_event: BaseEvent, ) -> Option<PostmapEvent>
解析POSTMAP日志行
Trait Implementations§
Source§impl ComponentParser for PostmapParser
impl ComponentParser for PostmapParser
Auto Trait Implementations§
impl Freeze for PostmapParser
impl RefUnwindSafe for PostmapParser
impl Send for PostmapParser
impl Sync for PostmapParser
impl Unpin for PostmapParser
impl UnwindSafe for PostmapParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more