Documentation
¶
Index ¶
- func FilterAllEventTypesForOneBook(bookID uuid.UUID) eventstore.Filter
- func FilterAllEventTypesForOneBookOrReader(bookID uuid.UUID, readerID uuid.UUID) eventstore.Filter
- func FixtureBookCopyAddedToCirculation(bookID uuid.UUID, fakeClock time.Time) core.DomainEvent
- func FixtureBookCopyLentToReader(bookID uuid.UUID, readerID uuid.UUID, fakeClock time.Time) core.DomainEvent
- func FixtureBookCopyRemovedFromCirculation(bookID uuid.UUID, fakeClock time.Time) core.DomainEvent
- func FixtureBookCopyReturnedByReader(bookID uuid.UUID, readerID uuid.UUID, fakeClock time.Time) core.DomainEvent
- func GivenBookCopyAddedToCirculationWasAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, ...) core.DomainEvent
- func GivenBookCopyLentToReaderWasAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, ...) core.DomainEvent
- func GivenBookCopyRemovedFromCirculationWasAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, ...) core.DomainEvent
- func GivenBookCopyReturnedByReaderWasAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, ...) core.DomainEvent
- func GivenSomeOtherEventsWereAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, numEvents int, ...) time.Time
- func GivenUniqueID(t testing.TB) uuid.UUID
- func QueryMaxSequenceNumberBeforeAppend(t testing.TB, ctx context.Context, es postgresengine.EventStore, ...) eventstore.MaxSequenceNumberUint
- func ToStorable(t testing.TB, domainEvent core.DomainEvent) eventstore.StorableEvent
- func ToStorableWithMetadata(t testing.TB, domainEvent core.DomainEvent, eventMetadata shell.EventMetadata) eventstore.StorableEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterAllEventTypesForOneBook ¶
func FilterAllEventTypesForOneBook(bookID uuid.UUID) eventstore.Filter
func GivenBookCopyAddedToCirculationWasAppended ¶
func GivenBookCopyAddedToCirculationWasAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, bookID uuid.UUID, fakeClock time.Time) core.DomainEvent
func GivenBookCopyLentToReaderWasAppended ¶
func GivenBookCopyLentToReaderWasAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, bookID uuid.UUID, readerID uuid.UUID, fakeClock time.Time) core.DomainEvent
func GivenBookCopyRemovedFromCirculationWasAppended ¶
func GivenBookCopyRemovedFromCirculationWasAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, bookID uuid.UUID, fakeClock time.Time) core.DomainEvent
func GivenBookCopyReturnedByReaderWasAppended ¶
func GivenBookCopyReturnedByReaderWasAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, bookID uuid.UUID, readerID uuid.UUID, fakeClock time.Time) core.DomainEvent
func GivenSomeOtherEventsWereAppended ¶
func GivenSomeOtherEventsWereAppended(t testing.TB, ctx context.Context, es postgresengine.EventStore, numEvents int, startFrom eventstore.MaxSequenceNumberUint, fakeClock time.Time) time.Time
func QueryMaxSequenceNumberBeforeAppend ¶
func QueryMaxSequenceNumberBeforeAppend(t testing.TB, ctx context.Context, es postgresengine.EventStore, filter eventstore.Filter) eventstore.MaxSequenceNumberUint
func ToStorable ¶
func ToStorable(t testing.TB, domainEvent core.DomainEvent) eventstore.StorableEvent
func ToStorableWithMetadata ¶
func ToStorableWithMetadata(t testing.TB, domainEvent core.DomainEvent, eventMetadata shell.EventMetadata) eventstore.StorableEvent
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.