interface¶
The interface layer uses an application to service client requests.
notificationlog¶
Notification log is a pull-based mechanism for updating other applications.
-
class
eventsourcing.interface.notificationlog.
RemoteNotificationLog
(base_url, json_decoder_class=None)[source]¶ Bases:
eventsourcing.application.notificationlog.AbstractNotificationLog
Presents notification log sections retrieved an HTTP API that presents notification log sections in JSON format, for example by using a NotificationLogView.
-
class
eventsourcing.interface.notificationlog.
NotificationLogView
(notification_log: eventsourcing.application.notificationlog.LocalNotificationLog, json_encoder_class=None)[source]¶ Bases:
object
Presents sections of a notification log in JSON format.
Can be used to make an HTTP API that can be used remotely, for example by a RemoteNotificationLog.
-
__init__
(notification_log: eventsourcing.application.notificationlog.LocalNotificationLog, json_encoder_class=None)[source]¶ Initialises notification log view object.
Parameters: - notification_log (LocalNotificationLog) – A notification log object
- json_encoder_class (JSONEncoder) – JSON encoder class
-