Documentation
¶
Index ¶
- type AggregateRoot
- type AggregateRoot_ClearEvents_Call
- type AggregateRoot_Expecter
- type AggregateRoot_GetEvents_Call
- func (_c *AggregateRoot_GetEvents_Call) Return(domainEvents []aggregate.DomainEvent) *AggregateRoot_GetEvents_Call
- func (_c *AggregateRoot_GetEvents_Call) Run(run func()) *AggregateRoot_GetEvents_Call
- func (_c *AggregateRoot_GetEvents_Call) RunAndReturn(run func() []aggregate.DomainEvent) *AggregateRoot_GetEvents_Call
- type AggregateRoot_Record_Call
- func (_c *AggregateRoot_Record_Call) Return() *AggregateRoot_Record_Call
- func (_c *AggregateRoot_Record_Call) Run(run func(domainEvent aggregate.DomainEvent)) *AggregateRoot_Record_Call
- func (_c *AggregateRoot_Record_Call) RunAndReturn(run func(domainEvent aggregate.DomainEvent)) *AggregateRoot_Record_Call
- type DomainEvent
- type DomainEvent_Expecter
- type DomainEvent_GetAggregateID_Call
- type EventDispatcher
- type EventDispatcher_Dispatch_Call
- func (_c *EventDispatcher_Dispatch_Call) Return() *EventDispatcher_Dispatch_Call
- func (_c *EventDispatcher_Dispatch_Call) Run(run func(ctx context.Context, domainEvent []aggregate.DomainEvent)) *EventDispatcher_Dispatch_Call
- func (_c *EventDispatcher_Dispatch_Call) RunAndReturn(run func(ctx context.Context, domainEvent []aggregate.DomainEvent)) *EventDispatcher_Dispatch_Call
- type EventDispatcher_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateRoot ¶
AggregateRoot is an autogenerated mock type for the AggregateRoot type
func NewAggregateRoot ¶
func NewAggregateRoot(t interface { mock.TestingT Cleanup(func()) }) *AggregateRoot
NewAggregateRoot creates a new instance of AggregateRoot. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AggregateRoot) ClearEvents ¶
func (_mock *AggregateRoot) ClearEvents()
ClearEvents provides a mock function for the type AggregateRoot
func (*AggregateRoot) EXPECT ¶
func (_m *AggregateRoot) EXPECT() *AggregateRoot_Expecter
func (*AggregateRoot) GetEvents ¶
func (_mock *AggregateRoot) GetEvents() []aggregate.DomainEvent
GetEvents provides a mock function for the type AggregateRoot
func (*AggregateRoot) Record ¶
func (_mock *AggregateRoot) Record(domainEvent aggregate.DomainEvent)
Record provides a mock function for the type AggregateRoot
type AggregateRoot_ClearEvents_Call ¶
AggregateRoot_ClearEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearEvents'
func (*AggregateRoot_ClearEvents_Call) Return ¶
func (_c *AggregateRoot_ClearEvents_Call) Return() *AggregateRoot_ClearEvents_Call
func (*AggregateRoot_ClearEvents_Call) Run ¶
func (_c *AggregateRoot_ClearEvents_Call) Run(run func()) *AggregateRoot_ClearEvents_Call
func (*AggregateRoot_ClearEvents_Call) RunAndReturn ¶
func (_c *AggregateRoot_ClearEvents_Call) RunAndReturn(run func()) *AggregateRoot_ClearEvents_Call
type AggregateRoot_Expecter ¶
type AggregateRoot_Expecter struct {
// contains filtered or unexported fields
}
func (*AggregateRoot_Expecter) ClearEvents ¶
func (_e *AggregateRoot_Expecter) ClearEvents() *AggregateRoot_ClearEvents_Call
ClearEvents is a helper method to define mock.On call
func (*AggregateRoot_Expecter) GetEvents ¶
func (_e *AggregateRoot_Expecter) GetEvents() *AggregateRoot_GetEvents_Call
GetEvents is a helper method to define mock.On call
func (*AggregateRoot_Expecter) Record ¶
func (_e *AggregateRoot_Expecter) Record(domainEvent interface{}) *AggregateRoot_Record_Call
Record is a helper method to define mock.On call
- domainEvent
type AggregateRoot_GetEvents_Call ¶
AggregateRoot_GetEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEvents'
func (*AggregateRoot_GetEvents_Call) Return ¶
func (_c *AggregateRoot_GetEvents_Call) Return(domainEvents []aggregate.DomainEvent) *AggregateRoot_GetEvents_Call
func (*AggregateRoot_GetEvents_Call) Run ¶
func (_c *AggregateRoot_GetEvents_Call) Run(run func()) *AggregateRoot_GetEvents_Call
func (*AggregateRoot_GetEvents_Call) RunAndReturn ¶
func (_c *AggregateRoot_GetEvents_Call) RunAndReturn(run func() []aggregate.DomainEvent) *AggregateRoot_GetEvents_Call
type AggregateRoot_Record_Call ¶
AggregateRoot_Record_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Record'
func (*AggregateRoot_Record_Call) Return ¶
func (_c *AggregateRoot_Record_Call) Return() *AggregateRoot_Record_Call
func (*AggregateRoot_Record_Call) Run ¶
func (_c *AggregateRoot_Record_Call) Run(run func(domainEvent aggregate.DomainEvent)) *AggregateRoot_Record_Call
func (*AggregateRoot_Record_Call) RunAndReturn ¶
func (_c *AggregateRoot_Record_Call) RunAndReturn(run func(domainEvent aggregate.DomainEvent)) *AggregateRoot_Record_Call
type DomainEvent ¶
DomainEvent is an autogenerated mock type for the DomainEvent type
func NewDomainEvent ¶
func NewDomainEvent(t interface { mock.TestingT Cleanup(func()) }) *DomainEvent
NewDomainEvent creates a new instance of DomainEvent. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DomainEvent) EXPECT ¶
func (_m *DomainEvent) EXPECT() *DomainEvent_Expecter
func (*DomainEvent) GetAggregateID ¶
func (_mock *DomainEvent) GetAggregateID() string
GetAggregateID provides a mock function for the type DomainEvent
type DomainEvent_Expecter ¶
type DomainEvent_Expecter struct {
// contains filtered or unexported fields
}
func (*DomainEvent_Expecter) GetAggregateID ¶
func (_e *DomainEvent_Expecter) GetAggregateID() *DomainEvent_GetAggregateID_Call
GetAggregateID is a helper method to define mock.On call
type DomainEvent_GetAggregateID_Call ¶
DomainEvent_GetAggregateID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAggregateID'
func (*DomainEvent_GetAggregateID_Call) Return ¶
func (_c *DomainEvent_GetAggregateID_Call) Return(s string) *DomainEvent_GetAggregateID_Call
func (*DomainEvent_GetAggregateID_Call) Run ¶
func (_c *DomainEvent_GetAggregateID_Call) Run(run func()) *DomainEvent_GetAggregateID_Call
func (*DomainEvent_GetAggregateID_Call) RunAndReturn ¶
func (_c *DomainEvent_GetAggregateID_Call) RunAndReturn(run func() string) *DomainEvent_GetAggregateID_Call
type EventDispatcher ¶
EventDispatcher is an autogenerated mock type for the EventDispatcher type
func NewEventDispatcher ¶
func NewEventDispatcher(t interface { mock.TestingT Cleanup(func()) }) *EventDispatcher
NewEventDispatcher creates a new instance of EventDispatcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EventDispatcher) Dispatch ¶
func (_mock *EventDispatcher) Dispatch(ctx context.Context, domainEvent []aggregate.DomainEvent)
Dispatch provides a mock function for the type EventDispatcher
func (*EventDispatcher) EXPECT ¶
func (_m *EventDispatcher) EXPECT() *EventDispatcher_Expecter
type EventDispatcher_Dispatch_Call ¶
EventDispatcher_Dispatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dispatch'
func (*EventDispatcher_Dispatch_Call) Return ¶
func (_c *EventDispatcher_Dispatch_Call) Return() *EventDispatcher_Dispatch_Call
func (*EventDispatcher_Dispatch_Call) Run ¶
func (_c *EventDispatcher_Dispatch_Call) Run(run func(ctx context.Context, domainEvent []aggregate.DomainEvent)) *EventDispatcher_Dispatch_Call
func (*EventDispatcher_Dispatch_Call) RunAndReturn ¶
func (_c *EventDispatcher_Dispatch_Call) RunAndReturn(run func(ctx context.Context, domainEvent []aggregate.DomainEvent)) *EventDispatcher_Dispatch_Call
type EventDispatcher_Expecter ¶
type EventDispatcher_Expecter struct {
// contains filtered or unexported fields
}
func (*EventDispatcher_Expecter) Dispatch ¶
func (_e *EventDispatcher_Expecter) Dispatch(ctx interface{}, domainEvent interface{}) *EventDispatcher_Dispatch_Call
Dispatch is a helper method to define mock.On call
- ctx
- domainEvent