mocks

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	mock.Mock
}

Consumer is an autogenerated mock type for the Consumer type

func NewConsumer

func NewConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Consumer) Consume

func (_m *Consumer) Consume(ctx context.Context, handler goqueue.InboundMessageHandler, meta map[string]interface{}) error

Consume provides a mock function with given fields: ctx, handler, meta

func (*Consumer) Stop

func (_m *Consumer) Stop(ctx context.Context) error

Stop provides a mock function with given fields: ctx

type InboundMessageHandler

type InboundMessageHandler struct {
	mock.Mock
}

InboundMessageHandler is an autogenerated mock type for the InboundMessageHandler type

func NewInboundMessageHandler

func NewInboundMessageHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *InboundMessageHandler

NewInboundMessageHandler creates a new instance of InboundMessageHandler. 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 (*InboundMessageHandler) HandleMessage

HandleMessage provides a mock function with given fields: ctx, m

type Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher

func NewPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Publisher) Close

func (_m *Publisher) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*Publisher) Publish

func (_m *Publisher) Publish(ctx context.Context, m goqueue.Message) error

Publish provides a mock function with given fields: ctx, m

type PublisherHandler

type PublisherHandler struct {
	mock.Mock
}

PublisherHandler is an autogenerated mock type for the PublisherHandler type

func NewPublisherHandler

func NewPublisherHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *PublisherHandler

NewPublisherHandler creates a new instance of PublisherHandler. 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 (*PublisherHandler) Publish

func (_m *PublisherHandler) Publish(ctx context.Context, m goqueue.Message) error

Publish provides a mock function with given fields: ctx, m

Jump to

Keyboard shortcuts

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