Fact.EventStreamWriter (Fact v0.2.1)
View SourceA per-stream, on-demand GenServer responsible for serializing writes to an event stream. It ensures that events are appended in order, enriched with stream metadata, and committed atomically.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec commit( Fact.database_id(), Fact.event() | [Fact.event(), ...], Fact.event_stream_id(), Fact.event_position() | :any | :none | :exists, keyword() ) :: {:ok, Fact.event_position()} | {:error, term()}