Liking cljdoc? Tell your friends :D
Clojure only.

co.multiply.remontoire.api.gw

The fleet behind a gateway (§15), aliased __r.gw in a gateway's sessions and nowhere else. Everything __r offers applies on a gateway as on any instance; this is what a gateway has besides.

The fleet behind a gateway (§15), aliased `__r.gw` in a gateway's
sessions and nowhere else. Everything `__r` offers applies on a gateway
as on any instance; this is what a gateway has besides.
raw docstring

changeclj

(change)
(change seen)

Wait for the fleet to change.

Accepts: seen — optional, the fleet as nodes or this function last gave it.

Output shape: a task settling with the fleet, as nodes gives it, once it is other than seen: a node has attached, gone away or been forgotten, or has attached again under its name. At once when it already is. Without seen, other than it is at the call. It fails when the gateway stops first.

Wait for the fleet to change.

Accepts:
seen — optional, the fleet as `nodes` or this function last gave it.

Output shape:
a task settling with the fleet, as `nodes` gives it, once it is other
than `seen`: a node has attached, gone away or been forgotten, or has
attached again under its name. At once when it already is. Without
`seen`, other than it is at the call. It fails when the gateway stops
first.
sourceraw docstring

nodeclj

(node name)

Wait for a node to attach.

Accepts: name — String, the node's name.

Output shape: a task settling with the node's row from nodes once it is attached; at once when it already is. It waits for as long as that takes, and fails when the gateway stops first.

Wait for a node to attach.

Accepts:
name — String, the node's name.

Output shape:
a task settling with the node's row from `nodes` once it is attached;
at once when it already is. It waits for as long as that takes, and
fails when the gateway stops first.
sourceraw docstring

nodesclj

(nodes)

The fleet: this gateway first, then attached nodes, then nodes that went away with sessions still routed to them. A node away for as long as a session survives silence, a day, is forgotten with its sessions.

Output shape: [{:name String :attached Boolean :gateway true ; present only on this gateway's row :attachment String ; an id of its own each time the name attaches :since Date ; when it attached :heard-s Long ; seconds since it was last heard from :version String ; the Remontoire it runs :sessions Long} ; sessions living there …]

The fleet: this gateway first, then attached nodes, then nodes that
went away with sessions still routed to them. A node away for as long
as a session survives silence, a day, is forgotten with its sessions.

Output shape:
[{:name       String
  :attached   Boolean
  :gateway    true    ; present only on this gateway's row
  :attachment String  ; an id of its own each time the name attaches
  :since      Date    ; when it attached
  :heard-s    Long    ; seconds since it was last heard from
  :version    String  ; the Remontoire it runs
  :sessions   Long}   ; sessions living there
 …]
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