mockpublishers

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: AGPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 a mock consumers.Consumer.

func (*Consumer) Consume

func (m *Consumer) Consume(ctx context.Context, stopChan chan bool, errors chan error)

Consume implements the interface.

type ConsumerProvider

type ConsumerProvider struct {
	mock.Mock
}

ConsumerProvider is a mock consumers.ConsumerProvider.

func (*ConsumerProvider) ProvideConsumer

func (m *ConsumerProvider) ProvideConsumer(ctx context.Context, topic string, handlerFunc messagequeue.ConsumerFunc) (messagequeue.Consumer, error)

ProvideConsumer implements the interface.

type Publisher

type Publisher struct {
	mock.Mock
}

Publisher implements our interface.

func (*Publisher) Publish

func (m *Publisher) Publish(ctx context.Context, data any) error

Publish implements our interface.

func (*Publisher) PublishAsync

func (m *Publisher) PublishAsync(ctx context.Context, data any)

PublishAsync implements our interface.

func (*Publisher) Stop

func (m *Publisher) Stop()

Stop implements our interface.

type PublisherProvider

type PublisherProvider struct {
	mock.Mock
}

PublisherProvider implements our interface.

func (*PublisherProvider) Close

func (m *PublisherProvider) Close()

Close implements our interface.

func (*PublisherProvider) Ping

func (m *PublisherProvider) Ping(ctx context.Context) error

Ping implements our interface.

func (*PublisherProvider) ProvidePublisher

func (m *PublisherProvider) ProvidePublisher(ctx context.Context, topic string) (messagequeue.Publisher, error)

ProvidePublisher implements our interface.

Jump to

Keyboard shortcuts

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