(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"]
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 conn [tag value])
writes an action to the connection
(action-write |conn| [:write ["PING"]]) => nil
(wire/coerce (wire/read |conn|) :string) => "PONG"
writes an action to the connection (action-write |conn| [:write ["PING"]]) => nil (wire/coerce (wire/read |conn|) :string) => "PONG"
(handle-command conn transact handler input)
handles a command call
handles a command call
(handle-exec conn transact handler)
handles a call to perform transaction
handles a call to perform transaction
(handle-loop conn transact handler)
performs a loop call
performs a loop call
(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"]
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 conn transact handler)
(handle-single conn transact handler close)
performs a single call
performs a single call
(start-node handler port)
(start-node handler port {:keys [single] :as opts})
starts the remote node
starts the remote node
(stop-node {:keys [thread server executor] :as node})
stops the remote node
stops the remote node
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close