Liking cljdoc? Tell your friends :D

curator.discovery

Namespace for service discovery

Namespace for service discovery
raw docstring

dotonncljmacro

(dotonn x & forms)
source

down-instance-policyclj

(down-instance-policy)
(down-instance-policy timeout timeout-unit error-threshold)
source

instancecljmultimethod

source

instancescljmultimethod

source

json-serializerclj

(json-serializer)
source

note-errorclj

(note-error service-provider instance)

Clients should use this to indicate a problem when trying to connect to a service instance. The instance may be marked as down depending on the service provider's down instance policy.

Clients should use this to indicate a problem when trying to
connect to a service instance. The instance may be marked as down
depending on the service provider's down instance policy.
sourceraw docstring

random-strategyclj

(random-strategy)
source

round-robin-strategyclj

(round-robin-strategy)
source

service-cacheclj

(service-cache service-discovery s)

Creates a service cache (rather than reading ZooKeeper each time) for the service named s

Creates a service cache (rather than reading ZooKeeper each time) for
the service named s
sourceraw docstring

service-discoveryclj

(service-discovery
  curator-framework
  service-instance
  &
  {:keys [base-path serializer payload-class]
   :or {base-path "/foo" payload-class String serializer (json-serializer)}})
source

service-instanceclj

(service-instance name
                  uri-spec
                  port
                  &
                  {:keys [id address ssl-port service-type payload]})

name: my-service uri-spec: "{scheme}://foo.com:{port}" port: 1234 payload is serialized using json, only supports strings for now

name: my-service
uri-spec: "{scheme}://foo.com:{port}"
port: 1234
payload is serialized using json, only supports strings for now
sourceraw docstring

service-providerclj

(service-provider service-discovery
                  s
                  &
                  {:keys [strategy down-instance-policy]
                   :or {strategy (random-strategy)
                        down-instance-policy (down-instance-policy)}})

Creates a service provider for a named service s.

Creates a service provider for a named service s.
sourceraw docstring

servicesclj

(services service-discovery)

Returns the names of the services registered.

Returns the names of the services registered.
sourceraw docstring

sticky-strategyclj

(sticky-strategy strategy)
source

uriclj

(uri service-instance)
source

uri-spec*clj

(uri-spec* s)

Creates a templated UriSpec from a string format. Example: e.g. "{scheme}://foo.com:{port}" Substitutions can include: scheme, name, id, address, port, ssl-port, registration-time-utc, service-type

Creates a templated UriSpec from a string format.
Example: e.g. "{scheme}://foo.com:{port}"
Substitutions can include: scheme, name, id, address,
port, ssl-port, registration-time-utc, service-type
sourceraw docstring

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

× close