Bases: Protocol
Protocol for outbox entry filtering strategies.
Used to determine whether a Event should be included in the outbox processing.
Implementations should return True to include the event, or False to skip it.
Source code in event_sourcery/_event_store/outbox.py
| @runtime_checkable
class OutboxFiltererStrategy(Protocol):
"""
Protocol for outbox entry filtering strategies.
Used to determine whether a Event should be included in the outbox processing.
Implementations should return True to include the event, or False to skip it.
"""
def __call__(self, entry: RawEvent) -> bool: ...
|