cizen v0.3.0 Cizen.EventBodyFilter behaviour View Source
A behaviour module to define an event filter.
Link to this section Summary
Functions
Defines a event body filter
Link to this section Types
Link to this section Functions
Defines a event body filter.
Example
defmodule SomeEvent do
defstruct [:key, :value]
import Cizen.EventBodyFilter
defeventbodyfilter KeyFilter, :key
defeventbodyfilter ValueFilter, :value do
@moduledoc "Some document"
end
end
Link to this function
test(filter, event_body)
View Source
test(Cizen.EventBodyFilter.t(), Cizen.EventBody.t()) :: boolean()