Liking cljdoc? Tell your friends :D

curator.discovery

Namespace for service discovery

Namespace for service discovery
raw docstring

dotonncljmacro

(dotonn x & forms)

down-instance-policyclj

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

instancecljmultimethod


instancescljmultimethod


json-serializerclj

(json-serializer)

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.
raw docstring

random-strategyclj

(random-strategy)

round-robin-strategyclj

(round-robin-strategy)

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
raw 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)}})

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
raw 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.
raw docstring

servicesclj

(services service-discovery)

Returns the names of the services registered.

Returns the names of the services registered.
raw docstring

sticky-strategyclj

(sticky-strategy strategy)

uriclj

(uri service-instance)

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
raw docstring

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

× close