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.
(new-notifier)Create a Notifier component. Depends on :mqtt-publisher.
Create a Notifier component. Depends on :mqtt-publisher.
(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:
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).cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |