shellbot.routes.notifier module¶
-
class
shellbot.routes.notifier.
Notifier
(context=None, **kwargs)[source]¶ Bases:
shellbot.routes.base.Route
Notifies a queue on web request
>>>queue = Queue() >>>route = Notifier(route=’/notify’, queue=queue, notification=’hello’)
When the route is requested over the web, the notification is pushed to the queue.
>>>queue.get() ‘hello’
Notification is triggered on GET, POST, PUT and DELETE verbs.
-
notification
= None¶
-
queue
= <shellbot.routes.notifier.NoQueue object>¶
-
route
= '/notify'¶
-