Coverage for src / lexigram / contracts / events / __init__.py: 0%
6 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-08-15 18:57 +0800
« prev ^ index » next coverage.py v7.13.5, created at 2026-08-15 18:57 +0800
1"""Event sourcing protocols (CQRS/ES)."""
3from __future__ import annotations
5from lexigram.contracts.events.messages import (
6 Command,
7 IdempotentCommand,
8 Message,
9 MessageMetadata,
10 MessageSerializerProtocol,
11)
12from lexigram.contracts.events.outbox import (
13 OutboxBackendProtocol,
14 OutboxEntryProtocol,
15 OutboxRelayProtocol,
16 OutboxStatus,
17)
18from lexigram.contracts.events.protocols import (
19 AggregateFactoryProtocol,
20 CommandBusProtocol,
21 CommandHandlerProtocol,
22 DomainEventPublisherProtocol,
23 EventBusProtocol,
24 EventHandlerProtocol,
25 EventMiddlewareProtocol,
26 EventSourcedReadRepositoryProtocol,
27 EventSourcedRepositoryProtocol,
28 EventStoreProtocol,
29 IntegrationEventProtocol,
30 MultiEventHandlerProtocol,
31 ProjectionProtocol,
32 PubSubProtocol,
33 QueryBusProtocol,
34 QueryHandlerProtocol,
35 SnapshotStoreProtocol,
36 WebhookSignatureVerifierProtocol,
37)
38from lexigram.contracts.events.version_skew import (
39 EventSchemaVersionSkew,
40 EventTypeVersion,
41 UnknownEventTypeReceived,
42)
44__all__ = [
45 "AggregateFactoryProtocol",
46 "Command",
47 "CommandBusProtocol",
48 "CommandHandlerProtocol",
49 "DomainEventPublisherProtocol",
50 "EventBusProtocol",
51 "EventHandlerProtocol",
52 "EventMiddlewareProtocol",
53 "EventSchemaVersionSkew",
54 "EventSourcedReadRepositoryProtocol",
55 "EventSourcedRepositoryProtocol",
56 "EventStoreProtocol",
57 "EventTypeVersion",
58 "IdempotentCommand",
59 "IntegrationEventProtocol",
60 "Message",
61 "MessageMetadata",
62 "MessageSerializerProtocol",
63 "MultiEventHandlerProtocol",
64 "OutboxBackendProtocol",
65 "OutboxEntryProtocol",
66 "OutboxRelayProtocol",
67 "OutboxStatus",
68 "ProjectionProtocol",
69 "PubSubProtocol",
70 "QueryBusProtocol",
71 "QueryHandlerProtocol",
72 "SnapshotStoreProtocol",
73 "UnknownEventTypeReceived",
74 "WebhookSignatureVerifierProtocol",
75]