Liking cljdoc? Tell your friends :D

clj-grpc.server


defrpccljmacro

(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.
sourceraw docstring

get-grpc-java-binding-propertycljmacro

(get-grpc-java-binding-property property)
source

grpc-java-bindings-per-nsclj

source

grpc-servicesclj

source

implement-grpc-servicecljmacro

(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.
sourceraw docstring

kebab-case-keysclj

(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.
sourceraw docstring

make-grpc-serverclj

(make-grpc-server port)

Create new gRPC server listening on port PORT

Create new gRPC server listening on port `PORT`
sourceraw docstring

new-grpc-serverclj

(new-grpc-server & {:keys [port] :or {port 5000}})
source

on-nextcljmacro

(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"})))
sourceraw docstring

start-grpcclj

(start-grpc server)
source

stop-grpcclj

(stop-grpc server)
source

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

× close