eventcore-types 2.0.1

Shared vocabulary types and traits for EventCore event sourcing library
Documentation

Shared vocabulary types and traits for the EventCore event sourcing library.

This crate provides the foundational types that are shared between the main eventcore crate and adapter implementations like eventcore-postgres. By extracting these types into a separate crate, we enable feature flag-based adapter re-exports without circular dependencies.

Overview

This crate contains:

  • Command traits: CommandLogic, CommandStreams, StreamResolver, Event, NewEvents
  • Command types: StreamDeclarations, StreamDeclarationsError
  • Store trait: EventStore, with EventStoreError and Operation
  • Command-state snapshots: CommandStateSnapshotId, CommandStateSnapshot, and CommandStateReplayCheckpoint
  • Stream types: StreamId, StreamVersion, StreamWrites, StreamWriteEntry, StreamPattern, StreamPrefix
  • Event streaming: EventStream, EventStreamSlice, collect_events
  • Projection traits: Projector, EventReader, CheckpointStore, ProjectorCoordinator
  • Projection types: EventFilter, EventPage, StreamPosition, FailureContext, FailureStrategy, MaxRetries, BatchSize, DelayMilliseconds, BackoffMultiplier
  • Errors: CommandError, BusinessRuleMessage