interface
— Interface¶
this page is under development — please check back soon
Classes¶
-
class
eventsourcing.interface.
NotificationLogInterface
[source]¶ Bases:
abc.ABC
Abstract base class for obtaining serialised sections of a notification log.
-
get_log_section
(section_id: str) → str[source]¶ Returns a serialised
Section
from a notification log.
-
get_notifications
(start: int, limit: int) → str[source]¶ Returns a serialised list of
Notification
objects from a notification log.
-
-
class
eventsourcing.interface.
NotificationLogJSONService
(app: TApplication)[source]¶ Bases:
eventsourcing.interface.NotificationLogInterface
,typing.Generic
Presents serialised sections of a notification log.
-
get_log_section
(section_id: str) → str[source]¶ Returns JSON serialised
Section
from a notification log.
-
get_notifications
(start: int, limit: int) → str[source]¶ Returns a serialised list of
Notification
objects from a notification log.
-
-
class
eventsourcing.interface.
NotificationLogJSONClient
(interface: eventsourcing.interface.NotificationLogInterface)[source]¶ Bases:
eventsourcing.application.NotificationLog
Presents deserialized sections of a notification log.
-
__init__
(interface: eventsourcing.interface.NotificationLogInterface)[source]¶ Initialises log with a given interface.
-
__getitem__
(section_id: str) → eventsourcing.application.Section[source]¶ Returns a
Section
from a notification log.
-
select
(start: int, limit: int) → List[eventsourcing.persistence.Notification][source]¶ Returns a list of
Notification
objects.
-