Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeliveryReport ¶
DeliveryReport monitories a channel kafka
func NewKafkaProducer ¶
NewKafkaProducer creates a new kafka producer
Types ¶
type KafkaProcessor ¶
type KafkaProcessor struct { Database *gorm.DB Producer *ckafka.Producer DeliveryChan chan ckafka.Event }
KafkaProcessor represents a processor for kafka messages
func NewKafkaProcessor ¶
func NewKafkaProcessor(database *gorm.DB, producer *ckafka.Producer, deliveryChan chan ckafka.Event) *KafkaProcessor
NewKafkaProcessor creates a new processor for kafka messages
func (*KafkaProcessor) Consume ¶
func (processor *KafkaProcessor) Consume()
Consume consumes messages
Click to show internal directories.
Click to hide internal directories.