Liking cljdoc? Tell your friends :D

protojure.grpc.client.utils

Functions used for grpc unary calls in clients generated by protojure-protoc-plugin

Functions used for grpc unary calls in clients generated by protojure-protoc-plugin
raw docstring

invoke-unaryclj

(invoke-unary client params ch)

Invokes a GRPC operation similar to the invoke operation within api/Provider, but the promise returned resolves to a decoded result when successful. Used in remote procedure calls with unary return types.

Parameters

ValueTypeDescription
clientapi/ProviderAn instance of a client provider
paramsmapSee 'params' in the '(invoke ..)' method within api/Provider
chcore.async/channelA core.async channel expected to carry the response data
Invokes a GRPC operation similar to the invoke operation within [[api/Provider]], but the promise returned
resolves to a decoded result when successful.  Used in remote procedure calls with unary return types.

#### Parameters

| Value       | Type                 | Description                                                                |
|-------------|----------------------|----------------------------------------------------------------------------|
| **client**  | _[[api/Provider]]_   | An instance of a client provider                                           |
| **params**  | _map_                | See 'params' in the '(invoke ..)' method within [[api/Provider]]           |
| **ch**      | _core.async/channel_ | A core.async channel expected to carry the response data                   |
  
sourceraw docstring

send-unary-paramsclj

(send-unary-params ch params)

Places an item on a channel and then closes the channel, returning a promise that completes after the channel is closed. Used in remote procedure calls with unary parameters.

Parameters

ValueTypeDescription
chcore.async/channelA core.async channel expected to carry 'params' and be subsequently closed
paramsanyThe object to place on the channel
Places an item on a channel and then closes the channel, returning a promise that completes
after the channel is closed.  Used in remote procedure calls with unary parameters.

#### Parameters

| Value       | Type                 | Description                                                                |
|-------------|----------------------|----------------------------------------------------------------------------|
| **ch**      | _core.async/channel_ | A core.async channel expected to carry 'params' and be subsequently closed |
| **params**  | _any_                | The object to place on the channel                                         |
  
sourceraw docstring

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

× close