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 ¶
func NewConsumer(t mockConstructorTestingTNewConsumer) *Consumer
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.
func (*Consumer) Consume ¶
func (_m *Consumer) Consume(ctx context.Context, runner rabbitmq.ConsumerRunner)
Consume provides a mock function with given fields: ctx, runner
func (*Consumer) EXPECT ¶
func (_m *Consumer) EXPECT() *Consumer_Expecter
type ConsumerRunner ¶
ConsumerRunner is an autogenerated mock type for the ConsumerRunner type
func NewConsumerRunner ¶
func NewConsumerRunner(t mockConstructorTestingTNewConsumerRunner) *ConsumerRunner
NewConsumerRunner creates a new instance of ConsumerRunner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ConsumerRunner) Do ¶
func (_m *ConsumerRunner) Do(ctx context.Context)
Do provides a mock function with given fields: ctx
func (*ConsumerRunner) EXPECT ¶
func (_m *ConsumerRunner) EXPECT() *ConsumerRunner_Expecter
func (*ConsumerRunner) Options ¶
func (_m *ConsumerRunner) Options() rabbitmq.ConsumerRunnerOptions
Options provides a mock function with given fields:
func (*ConsumerRunner) Run ¶
func (_m *ConsumerRunner) Run(ctx context.Context)
Run provides a mock function with given fields: ctx
type ConsumerRunner_Do_Call ¶
ConsumerRunner_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'
func (*ConsumerRunner_Do_Call) Return ¶
func (_c *ConsumerRunner_Do_Call) Return() *ConsumerRunner_Do_Call
func (*ConsumerRunner_Do_Call) Run ¶
func (_c *ConsumerRunner_Do_Call) Run(run func(ctx context.Context)) *ConsumerRunner_Do_Call
type ConsumerRunner_Expecter ¶
type ConsumerRunner_Expecter struct {
// contains filtered or unexported fields
}
func (*ConsumerRunner_Expecter) Do ¶
func (_e *ConsumerRunner_Expecter) Do(ctx interface{}) *ConsumerRunner_Do_Call
Do is a helper method to define mock.On call
- ctx context.Context
func (*ConsumerRunner_Expecter) Options ¶
func (_e *ConsumerRunner_Expecter) Options() *ConsumerRunner_Options_Call
Options is a helper method to define mock.On call
func (*ConsumerRunner_Expecter) Run ¶
func (_e *ConsumerRunner_Expecter) Run(ctx interface{}) *ConsumerRunner_Run_Call
Run is a helper method to define mock.On call
- ctx context.Context
type ConsumerRunner_Options_Call ¶
ConsumerRunner_Options_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Options'
func (*ConsumerRunner_Options_Call) Return ¶
func (_c *ConsumerRunner_Options_Call) Return(_a0 rabbitmq.ConsumerRunnerOptions) *ConsumerRunner_Options_Call
func (*ConsumerRunner_Options_Call) Run ¶
func (_c *ConsumerRunner_Options_Call) Run(run func()) *ConsumerRunner_Options_Call
type ConsumerRunner_Run_Call ¶
ConsumerRunner_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*ConsumerRunner_Run_Call) Return ¶
func (_c *ConsumerRunner_Run_Call) Return() *ConsumerRunner_Run_Call
func (*ConsumerRunner_Run_Call) Run ¶
func (_c *ConsumerRunner_Run_Call) Run(run func(ctx context.Context)) *ConsumerRunner_Run_Call
type Consumer_Consume_Call ¶
Consumer_Consume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Consume'
func (*Consumer_Consume_Call) Return ¶
func (_c *Consumer_Consume_Call) Return() *Consumer_Consume_Call
func (*Consumer_Consume_Call) Run ¶
func (_c *Consumer_Consume_Call) Run(run func(ctx context.Context, runner rabbitmq.ConsumerRunner)) *Consumer_Consume_Call
type Consumer_Expecter ¶
type Consumer_Expecter struct {
// contains filtered or unexported fields
}
func (*Consumer_Expecter) Consume ¶
func (_e *Consumer_Expecter) Consume(ctx interface{}, runner interface{}) *Consumer_Consume_Call
Consume is a helper method to define mock.On call
- ctx context.Context
- runner rabbitmq.ConsumerRunner