Namespace for service discovery
Namespace for service discovery
(down-instance-policy)
(down-instance-policy timeout timeout-unit error-threshold)
(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.
(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
(service-discovery
curator-framework
service-instance
&
{:keys [base-path serializer payload-class]
:or {base-path "/foo" payload-class String serializer (json-serializer)}})
(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
(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.
(services service-discovery)
Returns the names of the services registered.
Returns the names of the services registered.
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close