(defrpc rpc-function-name [this req res] & body)
Implement new RPC function RPC-NAME
returning type TYPE
within service being implemented in current namespace. Use ON-NEXT
function in BODY
to reply.
Implement new RPC function `RPC-NAME` returning type `TYPE` within service being implemented in current namespace. Use `ON-NEXT` function in `BODY` to reply.
(implement-grpc-service service-name
&
{:keys [java-package java-outer-classname]})
Implement gRPC service SERVICE
in current namespace, importing all necessary Java classes and preparing
environment. By providing necessary details in form JAVA-PACKAGE
and JAVA-OUTER-CLASS-NAME
(which are defined in
.proto
file), it will hopefully guess naming of Java classes automatically.
Implement gRPC service `SERVICE` in current namespace, importing all necessary Java classes and preparing environment. By providing necessary details in form `JAVA-PACKAGE` and `JAVA-OUTER-CLASS-NAME` (which are defined in `.proto` file), it will hopefully guess naming of Java classes automatically.
(kebab-case-keys m)
Recursively transforms all map keys from camelCase keywords to kebabCase keywords.
Recursively transforms all map keys from camelCase keywords to kebabCase keywords.
(make-grpc-server port)
Create new gRPC server listening on port PORT
Create new gRPC server listening on port `PORT`
(on-next type res data)
Call gRPC onNext
callback, replying on StreamObserver RES
with message of type TYPE
initielized with kebab-cased
key-value map DATA
.
Example call: (on-next "MessageType" res {:name "Name" :description "Description"})))
Call gRPC `onNext` callback, replying on StreamObserver `RES` with message of type `TYPE` initielized with kebab-cased key-value map `DATA`. Example call: (on-next "MessageType" res {:name "Name" :description "Description"})))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close