Liking cljdoc? Tell your friends :D

ductile.conn


closeclj

(close conn)

Inputs: [conn :- ESConn]

Inputs: [conn :- ESConn]
sourceraw docstring

cm-optionsclj

(cm-options {:keys [timeout]})
source

connectclj

(connect {:keys [protocol host port timeout version auth request-fn]
          :or {protocol :http
               request-fn client/request
               timeout default-timeout
               version 7}})

Inputs: [{:keys [protocol host port timeout version auth request-fn], :or {protocol :http, request-fn client/request, timeout default-timeout, version 7}} :- ConnectParams] Returns: ESConn

Instantiate an ES conn from ConnectParams props.

To intercept all ES HTTP requests, set :request-fn to function with the same interface as the 1-argument arity of clj-http.client/request.

Inputs: [{:keys [protocol host port timeout version auth request-fn], :or {protocol :http, request-fn client/request, timeout default-timeout, version 7}} :- ConnectParams]
Returns: ESConn

Instantiate an ES conn from ConnectParams props.

To intercept all ES HTTP requests, set :request-fn
to function with the same interface as the 1-argument
arity of `clj-http.client/request`.
sourceraw docstring

default-optsclj

source

default-timeoutclj

source

make-connection-managerclj

(make-connection-manager cm-options)
source

make-http-optsclj

(make-http-opts conn opts)
(make-http-opts conn opts query-params-keys)
(make-http-opts {:keys [cm auth]} opts query-params-keys form-params body)

Inputs: ([{:keys [cm auth]} :- (s/maybe ESConn) opts :- (s/pred map?) query-params-keys :- (s/maybe (s/pred coll?)) form-params :- (s/maybe (s/pred map?)) body :- s/Any] [conn opts query-params-keys] [conn opts]) Returns: (s/pred map?)

Inputs: ([{:keys [cm auth]} :- (s/maybe ESConn) opts :- (s/pred map?) query-params-keys :- (s/maybe (s/pred coll?)) form-params :- (s/maybe (s/pred map?)) body :- s/Any] [conn opts query-params-keys] [conn opts])
Returns: (s/pred map?)
sourceraw docstring

safe-es-bulk-readclj

(safe-es-bulk-read body)
source

safe-es-readclj

(safe-es-read {:keys [status body] :as res})
source

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

× close