Liking cljdoc? Tell your friends :D

kala.transactor

The standalone transactor: a TCP server owning the database's single writer. Peers and clients speak the wire protocol (docs/wire-protocol.md); writes serialize through one lock into a single total order, then commit to durable storage. Reads run against the transactor's db value, pinned to a t (as-of), a since view, or history when the request asks.

The standalone transactor: a TCP server owning the database's single
writer. Peers and clients speak the wire protocol (docs/wire-protocol.md);
writes serialize through one lock into a single total order, then commit
to durable storage. Reads run against the transactor's db value, pinned
to a t (as-of), a since view, or history when the request asks.
raw docstring

-mainclj

(-main config-path & _)

handlersclj


parse-configclj

(parse-config s)

The transactor config file: EDN map with :host, :port, :storage, :path, and optionally :token (a shared secret every client must carry; generate one with e.g. openssl rand -hex 32).

The transactor config file: EDN map with :host, :port, :storage, :path,
and optionally :token (a shared secret every client must carry; generate
one with e.g. `openssl rand -hex 32`).
raw docstring

start!clj

(start! {:keys [host port storage path token] :or {port 0 storage :memory}})

Start a transactor. Opts: :port (0 picks an ephemeral port), :host, :storage (:memory or :file), :path (for file storage), :token (a shared secret every :connect must carry — nil, the default, requires no auth; a token that is present must be a non-empty string). Returns a map with :port, :stop!, :acceptor, :conn. The transactor owns one connection; concurrent client writes serialize through it.

Start a transactor. Opts: :port (0 picks an ephemeral port), :host,
:storage (:memory or :file), :path (for file storage), :token (a shared
secret every :connect must carry — nil, the default, requires no auth;
a token that is present must be a non-empty string). Returns a map with
:port, :stop!, :acceptor, :conn. The transactor owns one connection;
concurrent client writes serialize through it.
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