View Source PropertyTable.Matcher behaviour (property_table v0.2.3)

Behaviour for customizing the Matcher logic for filtering and dispatching events

Link to this section Summary

Callbacks

Check whether a pattern is valid

Check whether a property is valid

Returns true if the pattern matches the specified property

Link to this section Callbacks

@callback check_pattern(PropertyTable.pattern()) :: :ok | {:error, Exception.t()}

Check whether a pattern is valid

Returns :ok on success or {:error, error} where error is an Exception struct with information about the issue.

Link to this callback

check_property(property)

View Source
@callback check_property(PropertyTable.property()) :: :ok | {:error, Exception.t()}

Check whether a property is valid

Returns :ok on success or {:error, error} where error is an Exception struct with information about the issue.

Link to this callback

matches?(pattern, property)

View Source
@callback matches?(PropertyTable.pattern(), PropertyTable.property()) :: boolean()

Returns true if the pattern matches the specified property