Documentation
¶
Index ¶
- type MockConsumerOpt
- type MockConsumerOpt_Execute_Call
- func (_c *MockConsumerOpt_Execute_Call) Return() *MockConsumerOpt_Execute_Call
- func (_c *MockConsumerOpt_Execute_Call) Run(run func(_a0 *rabbit.ConsumerOpts)) *MockConsumerOpt_Execute_Call
- func (_c *MockConsumerOpt_Execute_Call) RunAndReturn(run func(*rabbit.ConsumerOpts)) *MockConsumerOpt_Execute_Call
- type MockConsumerOpt_Expecter
- type MockHandlerFunc
- type MockHandlerFunc_Execute_Call
- func (_c *MockHandlerFunc_Execute_Call) Return(action rabbitmq.Action) *MockHandlerFunc_Execute_Call
- func (_c *MockHandlerFunc_Execute_Call) Run(run func(ctx context.Context, d rabbitmq.Delivery)) *MockHandlerFunc_Execute_Call
- func (_c *MockHandlerFunc_Execute_Call) RunAndReturn(run func(context.Context, rabbitmq.Delivery) rabbitmq.Action) *MockHandlerFunc_Execute_Call
- type MockHandlerFunc_Expecter
- type MockPublishOpt
- type MockPublishOpt_Execute_Call
- func (_c *MockPublishOpt_Execute_Call) Return() *MockPublishOpt_Execute_Call
- func (_c *MockPublishOpt_Execute_Call) Run(run func(_a0 *rabbit.PublisherOptions)) *MockPublishOpt_Execute_Call
- func (_c *MockPublishOpt_Execute_Call) RunAndReturn(run func(*rabbit.PublisherOptions)) *MockPublishOpt_Execute_Call
- type MockPublishOpt_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConsumerOpt ¶
MockConsumerOpt is an autogenerated mock type for the ConsumerOpt type
func NewMockConsumerOpt ¶
func NewMockConsumerOpt(t interface {
mock.TestingT
Cleanup(func())
}) *MockConsumerOpt
NewMockConsumerOpt creates a new instance of MockConsumerOpt. 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 (*MockConsumerOpt) EXPECT ¶
func (_m *MockConsumerOpt) EXPECT() *MockConsumerOpt_Expecter
func (*MockConsumerOpt) Execute ¶
func (_m *MockConsumerOpt) Execute(_a0 *rabbit.ConsumerOpts)
Execute provides a mock function with given fields: _a0
type MockConsumerOpt_Execute_Call ¶
MockConsumerOpt_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockConsumerOpt_Execute_Call) Return ¶
func (_c *MockConsumerOpt_Execute_Call) Return() *MockConsumerOpt_Execute_Call
func (*MockConsumerOpt_Execute_Call) Run ¶
func (_c *MockConsumerOpt_Execute_Call) Run(run func(_a0 *rabbit.ConsumerOpts)) *MockConsumerOpt_Execute_Call
func (*MockConsumerOpt_Execute_Call) RunAndReturn ¶
func (_c *MockConsumerOpt_Execute_Call) RunAndReturn(run func(*rabbit.ConsumerOpts)) *MockConsumerOpt_Execute_Call
type MockConsumerOpt_Expecter ¶
type MockConsumerOpt_Expecter struct {
// contains filtered or unexported fields
}
func (*MockConsumerOpt_Expecter) Execute ¶
func (_e *MockConsumerOpt_Expecter) Execute(_a0 interface{}) *MockConsumerOpt_Execute_Call
Execute is a helper method to define mock.On call
- _a0 *rabbit.ConsumerOpts
type MockHandlerFunc ¶
MockHandlerFunc is an autogenerated mock type for the HandlerFunc type
func NewMockHandlerFunc ¶
func NewMockHandlerFunc(t interface {
mock.TestingT
Cleanup(func())
}) *MockHandlerFunc
NewMockHandlerFunc creates a new instance of MockHandlerFunc. 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 (*MockHandlerFunc) EXPECT ¶
func (_m *MockHandlerFunc) EXPECT() *MockHandlerFunc_Expecter
type MockHandlerFunc_Execute_Call ¶
MockHandlerFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockHandlerFunc_Execute_Call) Return ¶
func (_c *MockHandlerFunc_Execute_Call) Return(action rabbitmq.Action) *MockHandlerFunc_Execute_Call
func (*MockHandlerFunc_Execute_Call) Run ¶
func (_c *MockHandlerFunc_Execute_Call) Run(run func(ctx context.Context, d rabbitmq.Delivery)) *MockHandlerFunc_Execute_Call
func (*MockHandlerFunc_Execute_Call) RunAndReturn ¶
func (_c *MockHandlerFunc_Execute_Call) RunAndReturn(run func(context.Context, rabbitmq.Delivery) rabbitmq.Action) *MockHandlerFunc_Execute_Call
type MockHandlerFunc_Expecter ¶
type MockHandlerFunc_Expecter struct {
// contains filtered or unexported fields
}
func (*MockHandlerFunc_Expecter) Execute ¶
func (_e *MockHandlerFunc_Expecter) Execute(ctx interface{}, d interface{}) *MockHandlerFunc_Execute_Call
Execute is a helper method to define mock.On call
- ctx context.Context
- d rabbitmq.Delivery
type MockPublishOpt ¶
MockPublishOpt is an autogenerated mock type for the PublishOpt type
func NewMockPublishOpt ¶
func NewMockPublishOpt(t interface {
mock.TestingT
Cleanup(func())
}) *MockPublishOpt
NewMockPublishOpt creates a new instance of MockPublishOpt. 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 (*MockPublishOpt) EXPECT ¶
func (_m *MockPublishOpt) EXPECT() *MockPublishOpt_Expecter
func (*MockPublishOpt) Execute ¶
func (_m *MockPublishOpt) Execute(_a0 *rabbit.PublisherOptions)
Execute provides a mock function with given fields: _a0
type MockPublishOpt_Execute_Call ¶
MockPublishOpt_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockPublishOpt_Execute_Call) Return ¶
func (_c *MockPublishOpt_Execute_Call) Return() *MockPublishOpt_Execute_Call
func (*MockPublishOpt_Execute_Call) Run ¶
func (_c *MockPublishOpt_Execute_Call) Run(run func(_a0 *rabbit.PublisherOptions)) *MockPublishOpt_Execute_Call
func (*MockPublishOpt_Execute_Call) RunAndReturn ¶
func (_c *MockPublishOpt_Execute_Call) RunAndReturn(run func(*rabbit.PublisherOptions)) *MockPublishOpt_Execute_Call
type MockPublishOpt_Expecter ¶
type MockPublishOpt_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPublishOpt_Expecter) Execute ¶
func (_e *MockPublishOpt_Expecter) Execute(_a0 interface{}) *MockPublishOpt_Execute_Call
Execute is a helper method to define mock.On call
- _a0 *rabbit.PublisherOptions