Wire is a simple abstraction allowing for message streaming
Wire is a simple abstraction allowing for message streaming
(act wire criteria)
(act wire criteria payload)
Send a payload up the wire with criteria.
Send a payload up the wire with criteria.
(-act this criteria payload)
(-data this)
(-lay this key context)
(-tap this criteria f)
(data wire)
Get at the wire's data structure. It's a private thing.
Get at the wire's data structure. It's a private thing.
(find-tap-fns act-criteria registered-taps)
Search through all registered wiretap fns and use set logic to find any criteria matches to execute
Search through all registered wiretap fns and use set logic to find any criteria matches to execute
(group-merge & maps)
Merge conflicts into vectors. ex: (group-merge {:a :b} {:a :c}) => {:a [:b :c]} (group-merge {:a [:n :b]} {:a :c}) => {:a [:n :b :c]}
Merge conflicts into vectors. ex: (group-merge {:a :b} {:a :c}) => {:a [:b :c]} (group-merge {:a [:n :b]} {:a :c}) => {:a [:n :b :c]}
(lay wire criteria & data)
Allows you to inject both data and critera into your wire. The data can only be retrieved by an owner and only when a wire is acted upon. Attaching data allows for components to have state, yet behave anonymously from that state. The critera is merged with any act criteria down the wire
Allows you to inject both data and critera into your wire. The data can only be retrieved by an owner and only when a wire is acted upon. Attaching data allows for components to have state, yet behave anonymously from that state. The critera is merged with any act criteria down the wire
(tap wire criteria f)
Attaches a wiretap listener to some criteria. When the wire is acted upon, it looks for matching criteria on collected wiretaps.
Attaches a wiretap listener to some criteria. When the wire is acted upon, it looks for matching criteria on collected wiretaps.
(taps wire & taps)
Allow attachment of multiple taps at once. Can list keys/fns in pairs.
(wire/taps wire :key-1 (fn [o] (do-something o)) {:other :keys} (fn [o] (somethind-else o)))
Allow attachment of multiple taps at once. Can list keys/fns in pairs. (wire/taps wire :key-1 (fn [o] (do-something o)) {:other :keys} (fn [o] (somethind-else o)))
(wire-set m)
Allow for vectors of values to be used as criteria, we just transpose vector keys into another set of parings ex: {:a [:b :c]} => #{[:a :b] [:a :c]}
Allow for vectors of values to be used as criteria, we just transpose vector keys into another set of parings ex: {:a [:b :c]} => #{[:a :b] [:a :c]}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close