net.resp.node
action-eval
added in 3.0
(action-eval handler [cmd & args])creates result from an action
(action-eval nil “PING”) => :string “PONG”
(action-eval (fn k args :write (apply str args)) “WRITE” 1 2 3) => :write “123”
action-write
added in 3.0
(action-write conn [tag value])writes an action to the connection
(action-write |conn| [:write “PING”]) => nil
(wire/coerce (wire/read |conn|) :string) => “PONG”
handle-command
added in 3.0
(handle-command conn transact handler input)handles a command call
handle-exec
added in 3.0
(handle-exec conn transact handler)handles a call to perform transaction
handle-multi
added in 3.0
(handle-multi conn transact)handles a call to start transaction
(cc/req |conn| “MULTI”) => “OK”
(cc/req |conn| “PING”) => “QUEUED”
(cc/req |conn| “PING”) => “QUEUED”
(cc/req |conn| “EXEC”) => “PONG” “PONG”
handle-single
added in 3.0
(handle-single conn transact handler)(handle-single conn transact handler close)performs a single call
start-node
added in 3.0
(start-node handler port)(start-node handler port {:keys [single], :as opts})starts the remote node
stop-node
added in 3.0
(stop-node {:keys [thread server executor], :as node})stops the remote node