Liking cljdoc? Tell your friends :D

kala.wire

Wire framing and codec for the transactor protocol: each message is a 4-byte big-endian length followed by UTF-8 EDN. Byte arrays (the one EDN gap) travel as #dos/b64 base64 tags; #inst and #uuid use the default EDN readers. The protocol's op table lives here too — the single source the connection loop, handle-op, the client, and docs/wire-protocol.md all read (#26).

Wire framing and codec for the transactor protocol: each message is a
4-byte big-endian length followed by UTF-8 EDN. Byte arrays (the one EDN
gap) travel as #dos/b64 base64 tags; #inst and #uuid use the default EDN
readers. The protocol's op table lives here too — the single source the
connection loop, handle-op, the client, and docs/wire-protocol.md all
read (#26).
raw docstring

db-reference-fieldsclj


error-data-keysclj


error-data-keys-forclj

(error-data-keys-for kind)

The ex-data keys an error kind ships over the wire.

The ex-data keys an error kind ships over the wire.
raw docstring

op-specclj

(op-spec op)

One op's spec from the table, or nil.

One op's spec from the table, or nil.
raw docstring

opsclj


protocol-versionclj


read-msgclj

(read-msg in)

One message from the stream, or nil at EOF — clean or mid-frame (a truncated frame never decodes).

One message from the stream, or nil at EOF — clean or mid-frame
(a truncated frame never decodes).
raw docstring

write-msgclj

(write-msg out msg)

Write one message and flush.

Write one message and flush.
raw docstring

write-msg-strclj

(write-msg-str msg)

Debug helper: the exact wire payload for a message.

Debug helper: the exact wire payload for a message.
raw docstring

write-op?clj

(write-op? op)

Does this op serialize through the single-writer lock? Keyed off the op table — the connection loop's only write-ordering knowledge.

Does this op serialize through the single-writer lock? Keyed off the
op table — the connection loop's only write-ordering knowledge.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close