Documentation ¶
Index ¶
- type Publisher
- type Publisher_Expecter
- type Publisher_Publish_Call
- func (_c *Publisher_Publish_Call) Return(_a0 error) *Publisher_Publish_Call
- func (_c *Publisher_Publish_Call) Run(run func(data []byte, routingKeys []string, ...)) *Publisher_Publish_Call
- func (_c *Publisher_Publish_Call) RunAndReturn(run func([]byte, []string, ...func(*rabbitmq.PublishOptions)) error) *Publisher_Publish_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
Publisher is an autogenerated mock type for the Publisher type
func NewPublisher ¶
func NewPublisher(t mockConstructorTestingTNewPublisher) *Publisher
NewPublisher creates a new instance of Publisher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Publisher) EXPECT ¶
func (_m *Publisher) EXPECT() *Publisher_Expecter
type Publisher_Expecter ¶
type Publisher_Expecter struct {
// contains filtered or unexported fields
}
func (*Publisher_Expecter) Publish ¶
func (_e *Publisher_Expecter) Publish(data interface{}, routingKeys interface{}, optionFuncs ...interface{}) *Publisher_Publish_Call
Publish is a helper method to define mock.On call
- data []byte
- routingKeys []string
- optionFuncs ...func(*rabbitmq.PublishOptions)
type Publisher_Publish_Call ¶
Publisher_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'
func (*Publisher_Publish_Call) Return ¶
func (_c *Publisher_Publish_Call) Return(_a0 error) *Publisher_Publish_Call
func (*Publisher_Publish_Call) Run ¶
func (_c *Publisher_Publish_Call) Run(run func(data []byte, routingKeys []string, optionFuncs ...func(*rabbitmq.PublishOptions))) *Publisher_Publish_Call
func (*Publisher_Publish_Call) RunAndReturn ¶
func (_c *Publisher_Publish_Call) RunAndReturn(run func([]byte, []string, ...func(*rabbitmq.PublishOptions)) error) *Publisher_Publish_Call
Click to show internal directories.
Click to hide internal directories.