Liking cljdoc? Tell your friends :D

clj-rpc.client


get-invoke-resultclj

(get-invoke-result response)

get the invoke result , the result has two kinds:

  1. a map means a single invoke
  2. a collection means multi invoke
get the invoke result , the result has two kinds:
1. a map means a single invoke
2. a collection means multi invoke
sourceraw docstring

get-response-valueclj

(get-response-value m key)

get response key value ,either keywork or string

get response key value ,either keywork or string
sourceraw docstring

invoke-rpcclj

(invoke-rpc endpoint method-name args & func-args)

Invoke one or more remote func-name on endpoint with args. example: (invoke-rpc fun1 [arg1 arg2 ...] func2 [arg1 arg2 ...]]) if only one request return only one result, otherwise return collection of result

Invoke one or more remote func-name on endpoint with args.
example: (invoke-rpc fun1 [arg1 arg2 ...] func2 [arg1 arg2 ...]])
if only one request return only one result,
otherwise return collection of result
sourceraw docstring

invoke-rpc-with-tokenclj

(invoke-rpc-with-token endpoint token method-name args & func-args)

Invoke remote func-name on endpoint with args. example: (invoke-rpc-with-token token func1 [arg1 arg2 ...] func2 [arg ...]) if only one request return only one result, otherwise return collection of result

Invoke remote func-name on endpoint with args.
example: (invoke-rpc-with-token token func1 [arg1 arg2 ...] func2 [arg ...])
if only one request return only one result,
otherwise return collection of result
sourceraw docstring

mk-queryclj

(mk-query f-encode method-request & [conn-timeout socket-timeout])

make query object to send to endpoint.

make query object to send to endpoint.
sourceraw docstring

rpc-endpointclj

(rpc-endpoint &
              {:keys [server port on-wire fn-post-request conn-timeout
                      socket-timeout]
               :or {server "localhost"
                    port server/rpc-default-port
                    on-wire "clj"
                    fn-post-request http/post
                    conn-timeout 10000
                    socket-timeout 20000}})

Returns the endpoint to execute RPC functions.

Returns the endpoint to execute RPC functions.
sourceraw docstring

RpcEndpointcljprotocol

helpclj

(help endpoint)

Returns the list of the functions that endpoint support.

Returns the list of the functions that endpoint support.

invokeclj

(invoke endpoint method-request token)

Invoke functions with name func-name with arguments args on endpoint, parameter method-request can be a method-request structure like {:methd-name "str" :params ["hello" "world"]} or a collection of method-request.

Invoke functions with name func-name with arguments args on endpoint,
parameter method-request can be a method-request  structure like
     {:methd-name "str" :params ["hello" "world"]}
     or a collection of method-request.
source

str-method-requestclj

source

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

× close