Liking cljdoc? Tell your friends :D
Clojure only.

openadr3.vtn.notifier

Notifier component: dispatches C/U/D notifications to MQTT topics.

When a handler performs a successful create/update/delete, it calls (notify! notifier "PROGRAM" "CREATE" object). The notifier publishes to the appropriate MQTT topics.

Notifier component: dispatches C/U/D notifications to MQTT topics.

When a handler performs a successful create/update/delete, it calls
(notify! notifier "PROGRAM" "CREATE" object). The notifier publishes
to the appropriate MQTT topics.
raw docstring

new-notifierclj

(new-notifier)

Create a Notifier component. Depends on :mqtt-publisher.

Create a Notifier component. Depends on :mqtt-publisher.
sourceraw docstring

notify!clj

(notify! notifier object-type operation object)

Dispatch a notification for a C/U/D operation.

object-type — "PROGRAM", "EVENT", "SUBSCRIPTION" operation — "CREATE", "UPDATE", "DELETE" object — the raw stored object (with full metadata)

Publishes to:

  1. Global topic (e.g. programs/create)
  2. Scoped topics (e.g. programs/{programID}/events/create)

Safe to call with nil notifier (no-op).

Dispatch a notification for a C/U/D operation.

object-type — "PROGRAM", "EVENT", "SUBSCRIPTION"
operation   — "CREATE", "UPDATE", "DELETE"
object      — the raw stored object (with full metadata)

Publishes to:
  1. Global topic (e.g. programs/create)
  2. Scoped topics (e.g. programs/{programID}/events/create)

Safe to call with nil notifier (no-op).
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