kafka

package
v0.0.0-...-28e7d11 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TOPIC = "EmployeesList"
)

Variables

This section is empty.

Functions

func NewConsumer

func NewConsumer() (*kafka.Consumer, error)

func NewProducer

func NewProducer() (*kafka.Producer, error)

Types

type KafkaConsumer

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

func InitializeKafkaConsumer

func InitializeKafkaConsumer() *KafkaConsumer

func (*KafkaConsumer) ReadMessages

func (k *KafkaConsumer) ReadMessages(rw http.ResponseWriter, r *http.Request)

type KafkaProducer

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

func InitializeKafkaProducer

func InitializeKafkaProducer(database *database.EmployeeDB) *KafkaProducer

func (*KafkaProducer) ProduceMessages

func (k *KafkaProducer) ProduceMessages(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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