View Source Eventize.Persistence.InMemoryEventStore (eventize v0.2.0)

InMemoryEventStore is a Eventize.Persistence.EventStore process used to store events for Eventize.EventSourcedProcess instances in memory.

Link to this section Summary

Link to this section Functions

Link to this function

append_events(map, from, state)

View Source

Callback implementation for Eventize.Persistence.EventStore.append_events/3.

Link to this function

append_snapshot(map, from, state)

View Source

Callback implementation for Eventize.Persistence.EventStore.append_snapshot/3.

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

delete_events(map, from, state)

View Source

Callback implementation for Eventize.Persistence.EventStore.delete_events/3.

Link to this function

delete_snapshots(map, from, state)

View Source

Callback implementation for Eventize.Persistence.EventStore.delete_snapshots/3.

@spec init(%{serializer: atom()} | term()) ::
  {:ok, Eventize.Persistence.InMemoryEventStore.State.t()}

Initializes a InMemoryEventStore with a optional serializer.

Link to this function

load_events(map, from, state)

View Source

Callback implementation for Eventize.Persistence.EventStore.load_events/3.

Link to this function

load_snapshot(map, from, state)

View Source

Callback implementation for Eventize.Persistence.EventStore.load_snapshot/3.

@spec start_link(keyword()) :: :ignore | {:error, any()} | {:ok, pid()}