kafka

package
v0.0.0-...-228d9fb Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaProducer

type KafkaProducer struct {
	SyncProducer sarama.SyncProducer
	Brokers      []string
}

KafkaProducer : Kafka Producer

func (*KafkaProducer) Close

func (prod *KafkaProducer) Close() error

func (*KafkaProducer) New

func (prod *KafkaProducer) New() sarama.SyncProducer

func (*KafkaProducer) Send

func (prod *KafkaProducer) Send(topic string, message string)

Jump to

Keyboard shortcuts

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