dragon.event.system.core
Documentation forthcoming
create-dataflow-pubsub
(create-dataflow-pubsub)Documentation forthcoming
create-pubsub
(create-pubsub topic)Constructor for a pub-sub messenger. Takes one parameter, a publisher topic, that is used to perform lookups.
Since topics are keywords, the data sent on the publish channel needs to have the topic as one of the keys, or a subscriber will not receive the message.
dataflow-keys
Documentation forthcoming
get-dataflow-pubsub
(get-dataflow-pubsub system-or-component)get-pubsub
(get-pubsub system-or-component)publish
(publish system-or-component event-type)(publish system-or-component event-type data)publish->
(publish-> other-data system-or-component event-type)(publish-> other-data system-or-component event-type data)publish->>
(publish->> system-or-component event-type other-data)(publish->> system-or-component event-type data other-data)PubSubAPI
protocol
The API for Dragon pubsub messenging.
members
delete
(delete this)Delete the publisher.
get-chan
(get-chan this)Get the core.async channel associated with the publisher.
get-pub
(get-pub this)Get the core.async pub associated with the publisher.
get-sub
(get-sub this tag)Create and return a subscriber channel for a given tag (event-type).
get-topic
(get-topic this)Get the topic with which the messenger was instantiated.
subscribe
(subscribe system event-type)(subscribe system event-type func)