rangedbtest

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Code generated by go generate

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindEvents added in v0.2.1

func BindEvents(binder rangedb.EventBinder)

func NewCountSubscriber

func NewCountSubscriber() *countSubscriber

func NewFailingDeserializer added in v0.2.0

func NewFailingDeserializer() *failingDeserializer

func NewFailingEventStore added in v0.2.5

func NewFailingEventStore() *failingEventStore

func NewFailingSerializer added in v0.2.0

func NewFailingSerializer() *failingSerializer

func NewTotalEventsSubscriber added in v0.3.0

func NewTotalEventsSubscriber() *totalEventsSubscriber

func VerifyRecordIoStream

func VerifyRecordIoStream(t *testing.T, newIoStream func() rangedb.RecordIoStream)

VerifyRecordIoStream verifies the RecordIoStream interface.

func VerifyRecordSerializer

func VerifyRecordSerializer(t *testing.T, newSerializer func() rangedb.RecordSerializer)

VerifyRecordSerializer verifies the RecordSerializer interface.

func VerifyStore

func VerifyStore(t *testing.T, newStore func(t *testing.T, clock clock.Clock) rangedb.Store)

VerifyStore verifies the Store interface.

Types

type AnotherWasComplete

type AnotherWasComplete struct {
	ID string `json:"id"`
}

AnotherWasComplete is an event used for testing.

func (AnotherWasComplete) AggregateID

func (t AnotherWasComplete) AggregateID() string

AggregateID returns the aggregate id.

func (AnotherWasComplete) AggregateType

func (t AnotherWasComplete) AggregateType() string

AggregateType returns the aggregate type.

func (AnotherWasComplete) EventType

func (t AnotherWasComplete) EventType() string

EventType returns the event type. This will always be the struct name.

type EventSaver added in v0.2.6

type EventSaver func(event rangedb.Event, metadata interface{}) error

type ThatWasDone

type ThatWasDone struct {
	ID string
}

ThatWasDone is an event used for testing.

func (ThatWasDone) AggregateID

func (t ThatWasDone) AggregateID() string

AggregateID returns the aggregate id.

func (ThatWasDone) AggregateType

func (t ThatWasDone) AggregateType() string

AggregateType returns the aggregate type.

func (ThatWasDone) EventType

func (t ThatWasDone) EventType() string

EventType returns the event type. This will always be the struct name.

type ThingWasDone

type ThingWasDone struct {
	ID     string `json:"id"`
	Number int    `json:"number"`
}

ThingWasDone is an event used for testing.

func (ThingWasDone) AggregateID

func (t ThingWasDone) AggregateID() string

AggregateID returns the aggregate id.

func (ThingWasDone) AggregateType

func (t ThingWasDone) AggregateType() string

AggregateType returns the aggregate type.

func (ThingWasDone) EventType

func (t ThingWasDone) EventType() string

EventType returns the event type. This will always be the struct name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL