kafka

package
v0.0.0-...-8fd3720 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 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(deliveryChannel chan ckafka.Event)

func NewKafkaProcucer

func NewKafkaProcucer() *ckafka.Producer

func Publish

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

Types

type KafkaPreocessor

type KafkaPreocessor struct {
	Database        *gorm.DB
	Producer        *ckafka.Producer
	DeliveryChannel chan ckafka.Event
}

func NewKafkaProcessor

func NewKafkaProcessor(database *gorm.DB, producer *ckafka.Producer, deliveryChannel chan ckafka.Event) *KafkaPreocessor

func (*KafkaPreocessor) Consume

func (k *KafkaPreocessor) Consume()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳