kafka

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaConsumer

type KafkaConsumer interface {
	Start()
	Stop()
}

func NewConsumer

func NewConsumer(config config.KafkaConfig) (Consumer KafkaConsumer, err error)

type KafkaProducer

type KafkaProducer interface {
	Start()
	Stop()
	SendMessage(*sarama.ProducerMessage) error
}

KafkaProducer interface

func NewProducer

func NewProducer(config config.KafkaConfig) (Producer KafkaProducer, err error)

NewProducer return a new Synchronous KafkaProducer for one kafkaCluster. We will set up here the Producer req/s and kafka monitoring topics. This producer is the most restricted producer available, because it is synchronous and wait for all ACKs

Jump to

Keyboard shortcuts

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