Liking cljdoc? Tell your friends :D

lite.target.endpoint

Where a target listens, and whether anything is there yet.

Shared by the target-types that reach the target over a socket -- :http, which connects to one somebody else started, and :local-process, which waits for one it started itself. Deliberately protocol-blind: a TCP connect is the most a deployment axis can honestly ask, since it knows the target's address but not its API, and has no business inventing a health endpoint the target may not have.

Where a target listens, and whether anything is there yet.

Shared by the target-types that reach the target over a socket -- `:http`,
which connects to one somebody else started, and `:local-process`, which
waits for one it started itself. Deliberately protocol-blind: a TCP connect
is the most a *deployment* axis can honestly ask, since it knows the
target's address but not its API, and has no business inventing a health
endpoint the target may not have.
raw docstring

addressclj

(address target-type url)

Where the target is listening, from its URL. Parsing this up front is how a typo in a config becomes a sentence rather than a stack trace out of a worker thread ten seconds into a run. target-type only shapes the message.

Where the target is listening, from its URL. Parsing this up front is how a
typo in a config becomes a sentence rather than a stack trace out of a
worker thread ten seconds into a run. `target-type` only shapes the message.
sourceraw docstring

reachable?clj

(reachable? address timeout)

Is anything accepting connections there right now?

Is anything accepting connections there right now?
sourceraw docstring

wait-until-reachableclj

(wait-until-reachable address deadline-ms)

Polls until something is listening, or deadline-ms of wall-clock has passed. Returns true if it came up. For a target Lite just started: ops issued before it can serve would fail for a reason that has nothing to do with the target under test.

Polls until something is listening, or `deadline-ms` of wall-clock has
passed. Returns true if it came up. For a target Lite just started: ops
issued before it can serve would fail for a reason that has nothing to do
with the target under test.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close