vent.core
Action
protocol
members
execute
(execute this context)
action
macro
(action bindings & rest)
create-plan
(create-plan & {:keys [steps], :or {steps []}})
create-ruleset
(create-ruleset & fragments)
defruleset
macro
(defruleset name & forms)
determine-plans
(determine-plans ruleset event context)
execute-plan
(execute-plan plan context)
execute-plans
(execute-plans plans context)
from-channel
(from-channel event-channel & event-rules)
from-channels
(from-channels event-channels & event-rules)
gather
(gather gather-handler)
Gatherer
protocol
members
add-context-to
(add-context-to this context)
gatherer
macro
(gatherer bindings & rest)
on
(on rule-matching-fn & handlers)
on-complement-of
(on-complement-of matcher)
Takes a matcher and returns a matcher that matches its complement.
Examples:
(on-complement-of (on-type :do-not-match))
will match all types that are not :do-not-match
(on-complement-of (on-types [:do-not-match-1 :do-not-match-2]))
will match all types that are not :do-not-match-1
or :do-not-match-2
(on-complement-of (on :do-not-process))
will match all events that have a falsy property :do-not-process
on-every
(on-every & handlers)
on-type
(on-type event-type & handlers)
on-types
(on-types event-types & handlers)
option
(option selector & handlers)
options
(options & {:as options})
react-to
(react-to ruleset event context)
Selector
protocol
members
selects?
(selects? this context)
selector
macro
(selector bindings & rest)