observable¶
-
class
NotificationProducer
[source]¶ Bases:
pyloggr.utils.observable.Observable
A NotificationProducer produces some notifications and sends them to RabbitMQ
-
class
Observable
[source]¶ Bases:
object
An observable produces notifications and sends them to observers
-
notify_observers
(d, routing_key=None)[source]¶ Notify observers that the observable has a message for them
Parameters: - d (dict) – message
- routing_key – unused
Note
Tornado coroutine
-
register
(observer)[source]¶ Subscribe an observe for future notifications
Parameters: observer (Observer) – object that implements the Observer interface
-