mocks

package
v4.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	mock.Mock
}

Broker is an autogenerated mock type for the Broker type

func NewBroker

func NewBroker(t mockConstructorTestingTNewBroker) *Broker

NewBroker creates a new instance of Broker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Broker) Consume

func (_m *Broker) Consume(queueName string) (<-chan *message.Message, error)

Consume provides a mock function with given fields: queueName

func (*Broker) Publish

func (_m *Broker) Publish(queueName string, payload message.Payload) error

Publish provides a mock function with given fields: queueName, payload

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL