kafka

package
v0.0.0-...-87b52d5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeliveryReport

func DeliveryReport(deliveryChan chan ckafka.Event)

func NewKafkaProducer

func NewKafkaProducer() *ckafka.Producer

func Publish

func Publish(msg string, topic string, producer *ckafka.Producer, deliveryChan chan ckafka.Event) error

Types

type KafkaProcessor

type KafkaProcessor struct {
	Database     *gorm.DB
	Producer     *ckafka.Producer
	DeliveryChan chan ckafka.Event
}

func NewKafkaProcessor

func NewKafkaProcessor(database *gorm.DB, producer *ckafka.Producer, deliveryChan chan ckafka.Event) *KafkaProcessor

func (*KafkaProcessor) Consume

func (k *KafkaProcessor) Consume()

Jump to

Keyboard shortcuts

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