#![forbid(unsafe_code)]
pub mod backend;
mod behavior;
mod durable;
mod error;
mod id;
mod journal;
pub mod projection;
pub mod query;
mod serialization;
#[cfg(feature = "sharding")]
pub mod sharding;
mod snapshot;
pub mod state;
pub mod testkit;
#[cfg(feature = "cassandra")]
pub use backend::cassandra::{
CassandraPersistence, CassandraPersistenceConfig, CassandraPollingConfig, CassandraTableNames,
CassandraWriteMode,
};
pub use backend::{MemoryDurableStateStore, MemoryJournal, MemorySnapshotStore};
#[cfg(feature = "postgres")]
pub use backend::{
PostgresDeletePolicy, PostgresGroupCommitConfig, PostgresPersistence,
PostgresPersistenceConfig, PostgresPollingConfig, PostgresTableNames,
};
#[cfg(feature = "rocksdb")]
pub use backend::{RocksDbBackend, RocksDbDurability, RocksDbOptions};
pub use behavior::{
Effect, EventSourcedBehavior, EventSourcedHandle, EventSourcedMessage, EventSourcedRuntime,
EventSourcedSignal, EventSourcedState, IntoEventHandlerResult, PublishedEvent, Recovery,
ReplyEffect, RetentionCriteria, SnapshotSelection,
};
pub use durable::{DurableStateStore, VersionedState};
pub use error::{AppendOutcome, PersistenceError, PersistenceResult};
pub use id::{DEFAULT_PERSISTENCE_ID_SEPARATOR, PersistenceId, Revision, SequenceNr, Tag};
pub use journal::{AtomicWrite, EventStream, Journal, ReplayRange, StoredEvent};
#[cfg(feature = "protobuf")]
pub use serialization::ProstSerializer;
pub use serialization::{
EventAdapter, IdentityAdapter, PersistenceSerializer, SerializedPayload, SerializerCatalog,
SerializerId, StateAdapter,
};
pub use snapshot::{SelectedSnapshot, SnapshotCriteria, SnapshotMetadata, SnapshotStore};
pub use testkit::{
FailingJournal, assert_durable_state_store_conformance, assert_journal_conformance,
assert_snapshot_store_conformance,
};