Liking cljdoc? Tell your friends :D

hive-vim.protocol.codec

HVCP v1 wire codec. Pure: frames in, frames out, no IO.

Host-free cljc. Spec: docs/protocol.md (L0-L2).

HVCP v1 wire codec. Pure: frames in, frames out, no IO.

Host-free cljc. Spec: docs/protocol.md (L0-L2).
raw docstring

classifyclj/s

(classify frame)

Classify one decoded inbound frame as a response, a request or invalid.

Classify one decoded inbound frame as a response, a request or invalid.
sourceraw docstring

dispatch-opclj/s

(dispatch-op verb params id)

The op invoking VERB with PARAMS through the Vim-side dispatch function.

The op invoking VERB with PARAMS through the Vim-side dispatch function.
sourceraw docstring

encode-opclj/s

(encode-op {:keys [op id] :as wire-op})

The wire frame for a hive -> Vim op.

The wire frame for a hive -> Vim op.
sourceraw docstring

envelope->resultclj/s

(envelope->result value)

Translate what hive#rpc#dispatch returned into a Result. Anything that is not an envelope (Vim's own "ERROR" string, a missing plugin) is a :vim/vim-error.

Translate what hive#rpc#dispatch returned into a Result. Anything that is not
an envelope (Vim's own "ERROR" string, a missing plugin) is a :vim/vim-error.
sourceraw docstring

errorclj/s

(error category message)

The hive-side error Result for CATEGORY (a wire name or :vim keyword).

The hive-side error Result for CATEGORY (a wire name or :vim keyword).
sourceraw docstring

hello-replyclj/s

(hello-reply hello session-id)

Decide the reply to a hello. Accepts when the protocol major matches.

Decide the reply to a hello. Accepts when the protocol major matches.
sourceraw docstring

next-idclj/s

(next-id last-id)

The request id that follows LAST-ID. Ids start at -1 and decrease.

The request id that follows LAST-ID. Ids start at -1 and decrease.
sourceraw docstring

reply-frameclj/s

(reply-frame id payload)

The frame answering Vim request ID with PAYLOAD.

The frame answering Vim request ID with PAYLOAD.
sourceraw 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