EventStore

works.iterative.event.EventStore
trait EventStore[Id, T <: Event[_]]

Abstraction of event log

The log can persist events and restore the state of an entity from the events.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class InMemoryEventStore[Id, T]

Members list

Type members

Types

type Op[A] = UIO[A]

Value members

Abstract methods

def get(id: Id): UIO[Seq[T]]
def persist(id: Id, event: T): UIO[Unit]