To expose your clojure namespaces via slacker, you will need to start
a slacker server to serve these namespaces. Slacker server can be
started via slacker.server/start-slacker-server
.
A port and a collection of functions are required for
start-slacker-server
. The service will be exposed on the port and
bound to 0.0.0.0
by default.
For function collection, there are three types:
(the-ns 'slacker.example.api)
.{"slacker.example.api2" {"echo" (fn [data] data)}}
.You may also provide a thread pool for running these functions, we will discuss these options in Server threadpool and queue
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close