1pub mod domain;
2pub mod domain_event;
3pub mod errors;
4pub mod auditable;
5pub mod bus;
6pub mod event_store;
7pub mod persistence;
8pub mod domain_event_handlers;
9pub mod event_store_repository;
10pub mod cqrs;
11pub mod projection;
12
13pub mod prelude {
14 pub use crate::bus::in_memory::command_bus::{CommandBus, CommandBusPort};
15 pub use crate::bus::in_memory::event_bus::{EventBus, EventBusPort};
16 pub use crate::bus::in_memory::query_bus::{QueryBus, QueryBusPort};
17 pub use crate::cqrs::{Command, CommandHandler, CommandHandlerFactory, Query, QueryHandler, QueryHandlerFactory};
18 pub use crate::domain::{AggregateContainer, AggregateRoot, EntityId};
19 pub use crate::domain_event::{DomainEvent, DomainEventHandler, DomainEventHandlerFactory, Snapshot, StoredEvent};
20 pub use crate::domain_event_handlers::{ProjectionUpdaterEventHandler, ProjectionUpdaterEventHandlerFactory};
21 pub use crate::errors::{CommandHandlerError, DomainError, DomainEventHandlerError, ProjectionError, QueryHandlerError};
22 pub use crate::projection::{ProjectionDtoEventApplier, ProjectionRepository};
23}
24
25pub mod types {
26 pub type SequenceNumber = u32;
27}