Documentation
¶
Overview ¶
Code generated by go generate
Index ¶
- func BindEvents(binder eventBinder)
- func NewCountSubscriber() *countSubscriber
- func NewFailingDeserializer() *failingDeserializer
- func NewFailingSerializer() *failingSerializer
- func VerifyRecordIoStream(t *testing.T, newIoStream func() rangedb.RecordIoStream)
- func VerifyRecordSerializer(t *testing.T, newSerializer func() rangedb.RecordSerializer)
- func VerifyStore(t *testing.T, newStore NewStoreFunc)
- type AnotherWasComplete
- type NewStoreFunc
- type ThatWasDone
- type ThingWasDone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindEvents ¶ added in v0.2.1
func BindEvents(binder eventBinder)
func NewCountSubscriber ¶
func NewCountSubscriber() *countSubscriber
NewCountSubscriber returns a countSubscriber.
func NewFailingDeserializer ¶ added in v0.2.0
func NewFailingDeserializer() *failingDeserializer
func NewFailingSerializer ¶ added in v0.2.0
func NewFailingSerializer() *failingSerializer
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 NewStoreFunc)
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 NewStoreFunc ¶
type NewStoreFunc func(clock.Clock) (store rangedb.Store, tearDown func(), bindEvents func(events ...rangedb.Event))
NewStoreFunc defines a helper function to verify the store interface.
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 ¶
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.