Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyTopicName is returned when a topic name is empty. ErrEmptyTopicName = errors.New("empty topic name") )
Functions ¶
This section is empty.
Types ¶
type ConsumerProvider ¶
type ConsumerProvider interface {
ProvideConsumer(ctx context.Context, topic string, handlerFunc func(context.Context, []byte) error) (Consumer, error)
}
ConsumerProvider is a function that provides a Consumer for a given topic.
func NewNoopConsumerProvider ¶
func NewNoopConsumerProvider() ConsumerProvider
NewNoopConsumerProvider is a noop ConsumerProvider.
type NoopConsumer ¶
type NoopConsumer struct{}
NoopConsumer is a no-op messagequeue.Consumer.
func (*NoopConsumer) Consume ¶
func (n *NoopConsumer) Consume(_ chan bool, _ chan error)
Consume does nothing.
type PublisherProvider ¶
PublisherProvider is a function that provides a Publisher for a given topic.
func NewNoopPublisherProvider ¶
func NewNoopPublisherProvider() PublisherProvider
NewNoopPublisherProvider is a noop PublisherProvider.
Click to show internal directories.
Click to hide internal directories.