Documentation
¶
Overview ¶
Package aggregateaccess is the infrastructure side of package aggregate. It reaches the bookkeeping that aggregate.Base keeps unexported. Only eventstore and aggregatetest may import it (enforced by depguard).
Index ¶
- func Init[I aggregate.ID](r aggregate.Root[I], id I)
- func MarkCommitted[I aggregate.ID](r aggregate.Root[I])
- func Replay[I aggregate.ID](r aggregate.Root[I], e aggregate.Event)
- func UUID[I aggregate.ID](r aggregate.Root[I]) uuid.UUID
- func Uncommitted[I aggregate.ID](r aggregate.Root[I]) []aggregate.Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkCommitted ¶
MarkCommitted forgets the uncommitted events after a successful save.
func Replay ¶
Replay applies a historical event and increments the version without recording the event as uncommitted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.