kafka

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger *zap.Logger, mqCfg messageQueue.Config, routerUrl string) (messageQueue.MessageQueue, error)

Types

type Factory

type Factory struct{}

func (*Factory) Create

func (factory *Factory) Create(logger *zap.Logger, mqCfg messageQueue.Config, routerUrl string) (messageQueue.MessageQueue, error)

type Kafka

type Kafka struct {
	// contains filtered or unexported fields
}

func (Kafka) Subscribe

func (kafka Kafka) Subscribe(trigger *fv1.MessageQueueTrigger) (messageQueue.Subscription, error)

func (Kafka) Unsubscribe

func (kafka Kafka) Unsubscribe(subscription messageQueue.Subscription) error

type MqtConsumer added in v1.16.0

type MqtConsumer struct {
	// contains filtered or unexported fields
}

type MqtConsumerGroupHandler added in v1.15.1

type MqtConsumerGroupHandler struct {
	// contains filtered or unexported fields
}

func NewMqtConsumerGroupHandler added in v1.15.1

func NewMqtConsumerGroupHandler(version sarama.KafkaVersion,
	logger *zap.Logger,
	trigger *fv1.MessageQueueTrigger,
	producer sarama.SyncProducer,
	routerUrl string) MqtConsumerGroupHandler

func (MqtConsumerGroupHandler) Cleanup added in v1.15.1

Cleanup implemented to satisfy the sarama.ConsumerGroupHandler interface

func (MqtConsumerGroupHandler) ConsumeClaim added in v1.15.1

ConsumeClaims implemented to satisfy the sarama.ConsumerGroupHandler interface

func (MqtConsumerGroupHandler) Setup added in v1.15.1

Setup implemented to satisfy the sarama.ConsumerGroupHandler interface

Jump to

Keyboard shortcuts

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