Cizen v0.11.2 Cizen.Filter View Source
Creates a filter.
Basic
Filter.new(
fn %Event{body: %SomeEvent{field: value}} ->
value == :a
end
)
Matches specific struct
Filter.new(
fn %Event{body: %SomeEvent{}} -> true end
)
Uses other filter
Filter.new(
fn %Event{body: %SomeEvent{field: value}} ->
Filter.match?(other_filter, value)
end
)
Link to this section Summary
Functions
Joins the given filters with and
Joins the given filters with or
Checks whether the given struct matches or not
Link to this section Types
Link to this section Functions
Joins the given filters with and
.
Joins the given filters with or
.
Checks whether the given struct matches or not