Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
Consumer is an autogenerated mock type for the Consumer type
func NewConsumer ¶
NewConsumer creates a new instance of Consumer. 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 (*Consumer) EXPECT ¶
func (_m *Consumer) EXPECT() *Consumer_Expecter
type Consumer_Expecter ¶
type Consumer_Expecter struct {
// contains filtered or unexported fields
}
func (*Consumer_Expecter) Start ¶
func (_e *Consumer_Expecter) Start(ctx interface{}) *Consumer_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*Consumer_Expecter) Stop ¶
func (_e *Consumer_Expecter) Stop(ctx interface{}) *Consumer_Stop_Call
Stop is a helper method to define mock.On call
- ctx context.Context
type Consumer_Start_Call ¶
Consumer_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Consumer_Start_Call) Return ¶
func (_c *Consumer_Start_Call) Return(err error) *Consumer_Start_Call
func (*Consumer_Start_Call) Run ¶
func (_c *Consumer_Start_Call) Run(run func(ctx context.Context)) *Consumer_Start_Call
func (*Consumer_Start_Call) RunAndReturn ¶
func (_c *Consumer_Start_Call) RunAndReturn(run func(ctx context.Context) error) *Consumer_Start_Call
type Consumer_Stop_Call ¶
Consumer_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*Consumer_Stop_Call) Return ¶
func (_c *Consumer_Stop_Call) Return(err error) *Consumer_Stop_Call
func (*Consumer_Stop_Call) Run ¶
func (_c *Consumer_Stop_Call) Run(run func(ctx context.Context)) *Consumer_Stop_Call
func (*Consumer_Stop_Call) RunAndReturn ¶
func (_c *Consumer_Stop_Call) RunAndReturn(run func(ctx context.Context) error) *Consumer_Stop_Call
type Producer ¶
Producer is an autogenerated mock type for the Producer type
func NewProducer ¶
NewProducer creates a new instance of Producer. 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 (*Producer) EXPECT ¶
func (_m *Producer) EXPECT() *Producer_Expecter
type Producer_Expecter ¶
type Producer_Expecter struct {
// contains filtered or unexported fields
}
func (*Producer_Expecter) Start ¶
func (_e *Producer_Expecter) Start(ctx interface{}) *Producer_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*Producer_Expecter) Stop ¶
func (_e *Producer_Expecter) Stop(ctx interface{}) *Producer_Stop_Call
Stop is a helper method to define mock.On call
- ctx context.Context
type Producer_Start_Call ¶
Producer_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Producer_Start_Call) Return ¶
func (_c *Producer_Start_Call) Return(err error) *Producer_Start_Call
func (*Producer_Start_Call) Run ¶
func (_c *Producer_Start_Call) Run(run func(ctx context.Context)) *Producer_Start_Call
func (*Producer_Start_Call) RunAndReturn ¶
func (_c *Producer_Start_Call) RunAndReturn(run func(ctx context.Context) error) *Producer_Start_Call
type Producer_Stop_Call ¶
Producer_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*Producer_Stop_Call) Return ¶
func (_c *Producer_Stop_Call) Return(err error) *Producer_Stop_Call
func (*Producer_Stop_Call) Run ¶
func (_c *Producer_Stop_Call) Run(run func(ctx context.Context)) *Producer_Stop_Call
func (*Producer_Stop_Call) RunAndReturn ¶
func (_c *Producer_Stop_Call) RunAndReturn(run func(ctx context.Context) error) *Producer_Stop_Call