Documentation
¶
Index ¶
- type EventRepo
- type EventRepo_Expecter
- type EventRepo_Lock_Call
- func (_c *EventRepo_Lock_Call) Return(_a0 []model.PackageEvent, _a1 error) *EventRepo_Lock_Call
- func (_c *EventRepo_Lock_Call) Run(run func(ctx context.Context, n uint64)) *EventRepo_Lock_Call
- func (_c *EventRepo_Lock_Call) RunAndReturn(run func(context.Context, uint64) ([]model.PackageEvent, error)) *EventRepo_Lock_Call
- type EventRepo_Remove_Call
- type EventRepo_Unlock_Call
- type EventSender
- type EventSender_Expecter
- type EventSender_Send_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventRepo ¶
EventRepo is an autogenerated mock type for the EventRepo type
func NewEventRepo ¶
NewEventRepo creates a new instance of EventRepo. 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 (*EventRepo) EXPECT ¶
func (_m *EventRepo) EXPECT() *EventRepo_Expecter
type EventRepo_Expecter ¶
type EventRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*EventRepo_Expecter) Lock ¶
func (_e *EventRepo_Expecter) Lock(ctx interface{}, n interface{}) *EventRepo_Lock_Call
Lock is a helper method to define mock.On call
- ctx context.Context
- n uint64
func (*EventRepo_Expecter) Remove ¶
func (_e *EventRepo_Expecter) Remove(ctx interface{}, eventIDs interface{}) *EventRepo_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
- eventIDs []uint64
func (*EventRepo_Expecter) Unlock ¶
func (_e *EventRepo_Expecter) Unlock(ctx interface{}, eventID interface{}) *EventRepo_Unlock_Call
Unlock is a helper method to define mock.On call
- ctx context.Context
- eventID []uint64
type EventRepo_Lock_Call ¶
EventRepo_Lock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Lock'
func (*EventRepo_Lock_Call) Return ¶
func (_c *EventRepo_Lock_Call) Return(_a0 []model.PackageEvent, _a1 error) *EventRepo_Lock_Call
func (*EventRepo_Lock_Call) Run ¶
func (_c *EventRepo_Lock_Call) Run(run func(ctx context.Context, n uint64)) *EventRepo_Lock_Call
func (*EventRepo_Lock_Call) RunAndReturn ¶
func (_c *EventRepo_Lock_Call) RunAndReturn(run func(context.Context, uint64) ([]model.PackageEvent, error)) *EventRepo_Lock_Call
type EventRepo_Remove_Call ¶
EventRepo_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*EventRepo_Remove_Call) Return ¶
func (_c *EventRepo_Remove_Call) Return(_a0 error) *EventRepo_Remove_Call
func (*EventRepo_Remove_Call) Run ¶
func (_c *EventRepo_Remove_Call) Run(run func(ctx context.Context, eventIDs []uint64)) *EventRepo_Remove_Call
func (*EventRepo_Remove_Call) RunAndReturn ¶
func (_c *EventRepo_Remove_Call) RunAndReturn(run func(context.Context, []uint64) error) *EventRepo_Remove_Call
type EventRepo_Unlock_Call ¶
EventRepo_Unlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unlock'
func (*EventRepo_Unlock_Call) Return ¶
func (_c *EventRepo_Unlock_Call) Return(_a0 error) *EventRepo_Unlock_Call
func (*EventRepo_Unlock_Call) Run ¶
func (_c *EventRepo_Unlock_Call) Run(run func(ctx context.Context, eventID []uint64)) *EventRepo_Unlock_Call
func (*EventRepo_Unlock_Call) RunAndReturn ¶
func (_c *EventRepo_Unlock_Call) RunAndReturn(run func(context.Context, []uint64) error) *EventRepo_Unlock_Call
type EventSender ¶
EventSender is an autogenerated mock type for the EventSender type
func NewEventSender ¶
func NewEventSender(t interface { mock.TestingT Cleanup(func()) }) *EventSender
NewEventSender creates a new instance of EventSender. 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 (*EventSender) EXPECT ¶
func (_m *EventSender) EXPECT() *EventSender_Expecter
func (*EventSender) Send ¶
func (_m *EventSender) Send(pkg *model.PackageEvent) error
Send provides a mock function with given fields: pkg
type EventSender_Expecter ¶
type EventSender_Expecter struct {
// contains filtered or unexported fields
}
func (*EventSender_Expecter) Send ¶
func (_e *EventSender_Expecter) Send(pkg interface{}) *EventSender_Send_Call
Send is a helper method to define mock.On call
- pkg *model.PackageEvent
type EventSender_Send_Call ¶
EventSender_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'
func (*EventSender_Send_Call) Return ¶
func (_c *EventSender_Send_Call) Return(_a0 error) *EventSender_Send_Call
func (*EventSender_Send_Call) Run ¶
func (_c *EventSender_Send_Call) Run(run func(pkg *model.PackageEvent)) *EventSender_Send_Call
func (*EventSender_Send_Call) RunAndReturn ¶
func (_c *EventSender_Send_Call) RunAndReturn(run func(*model.PackageEvent) error) *EventSender_Send_Call