Liking cljdoc? Tell your friends :D

wire.core

Wire is a simple abstraction allowing for message streaming

Wire is a simple abstraction allowing for message streaming
raw docstring

actclj/s

(act wire criteria)
(act wire criteria payload)

Send a payload up the wire with criteria.

Send a payload up the wire with criteria.
sourceraw docstring

BaseWireclj/s≠protocol

-actclj/s

(-act this criteria payload)

-dataclj/s

(-data this)

-layclj/s

(-lay this key context)

-tapclj/s

(-tap this criteria f)
source

dataclj/s

(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.
sourceraw docstring

find-tap-fnsclj/s

(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
sourceraw docstring

group-mergeclj/s

(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]}
sourceraw docstring

layclj/s

(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
sourceraw docstring

tapclj/s

(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.
sourceraw docstring

tapsclj/s

(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)))
sourceraw docstring

wireclj/s

(wire)
(wire data)

Create a new wire

Create a new wire
sourceraw docstring

Wirecljs

source

wire-setclj/s

(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]}
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close