rabbit

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConsumerOpt

type MockConsumerOpt struct {
	mock.Mock
}

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 (*MockConsumerOpt) Execute

func (_m *MockConsumerOpt) Execute(_a0 *rabbit.ConsumerOpts)

Execute provides a mock function with given fields: _a0

type MockConsumerOpt_Execute_Call

type MockConsumerOpt_Execute_Call struct {
	*mock.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 (*MockConsumerOpt_Execute_Call) Run

func (*MockConsumerOpt_Execute_Call) RunAndReturn

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

type MockHandlerFunc struct {
	mock.Mock
}

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 (*MockHandlerFunc) Execute

Execute provides a mock function with given fields: ctx, d

type MockHandlerFunc_Execute_Call

type MockHandlerFunc_Execute_Call struct {
	*mock.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 (*MockHandlerFunc_Execute_Call) Run

func (*MockHandlerFunc_Execute_Call) RunAndReturn

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

type MockPublishOpt struct {
	mock.Mock
}

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 (*MockPublishOpt) Execute

func (_m *MockPublishOpt) Execute(_a0 *rabbit.PublisherOptions)

Execute provides a mock function with given fields: _a0

type MockPublishOpt_Execute_Call

type MockPublishOpt_Execute_Call struct {
	*mock.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 (*MockPublishOpt_Execute_Call) Run

func (*MockPublishOpt_Execute_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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