Liking cljdoc? Tell your friends :D

datalevin.server

Non-blocking event-driven database server with role based access control

Non-blocking event-driven database server with role based access control
raw docstring

createclj

(create {:keys [port root verbose]
         :or {port 8898 root "/var/lib/datalevin" verbose false}})

Create a Datalevin server. Initially not running, call start to run.

Create a Datalevin server. Initially not running, call `start` to run.
sourceraw docstring

index-writer-handlercljmacro

(index-writer-handler f)

Handle request to index writer

Handle request to index writer
sourceraw docstring

IRunnercljprotocol

Ensure calls within with-transaction-kv run in the same thread that runs open-transact-kv, otherwise LMDB will deadlock

Ensure calls within `with-transaction-kv` run in the same thread that
runs `open-transact-kv`, otherwise LMDB will deadlock

halt-runclj

(halt-run this)

new-messageclj

(new-message this skey message)

run-callsclj

(run-calls this)
sourceraw docstring

IServercljprotocol

startclj

(start srv)

Start the server

Start the server

stopclj

(stop srv)

Stop the server

Stop the server
source

message-casescljmacro

(message-cases skey type)

Message handler function should have the same name as the incoming message type, e.g. '(authentication skey message) for :authentication message type

Message handler function should have the same name as the incoming message
type, e.g. '(authentication skey message) for :authentication message type
sourceraw docstring

message-handlersclj

source

normal-dt-store-handlercljmacro

(normal-dt-store-handler f)

Handle request to Datalog store that needs no copy-in or copy-out

Handle request to Datalog store that needs no copy-in or copy-out
sourceraw docstring

normal-kv-store-handlercljmacro

(normal-kv-store-handler f)

Handle request to key-value store that needs no copy-in or copy-out

Handle request to key-value store that needs no copy-in or copy-out
sourceraw docstring

password-hashingclj

(password-hashing password salt)
(password-hashing
  password
  salt
  {:keys [ops-limit mem-limit out-length parallelism]
   :or {ops-limit 4 mem-limit 131072 out-length 32 parallelism 1}})

hashing password using argon2id algorithm, see https://github.com/p-h-c/phc-winner-argon2

hashing password using argon2id algorithm, see
https://github.com/p-h-c/phc-winner-argon2
sourceraw docstring

password-matches?clj

(password-matches? in-password password-hash salt)
source

permission-actionsclj

source

permission-objectsclj

source

saltclj

(salt)

generate a 16 byte salt

generate a 16 byte salt
sourceraw docstring

search-handlercljmacro

(search-handler f)

Handle request to search engine

Handle request to search engine
sourceraw docstring

server-schemaclj

source

session-dbiclj

source

wrap-errorcljmacro

(wrap-error & body)
source

wrap-permissioncljmacro

(wrap-permission req-act req-obj req-tgt message & body)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close