kafka_message

package
v0.0.0-...-af4ac1c Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Consume

func Consume(topic string) (message string, err error)

func ConsumeReader

func ConsumeReader(brokers []string, topic string, partition int, stop chan bool, done chan int) (err error)

func Produce

func Produce(topic string, message []string, partition int) (err error)

Produce use kafka-go Connection api, learn more:https://pkg.go.dev/github.com/segmentio/kafka-go#readme-connection

func ProduceWriter

func ProduceWriter(address []string, topic string, messages []kafka.Message) (err error)

ProduceWriter use kafka-go writer api, learn more:https://pkg.go.dev/github.com/segmentio/kafka-go#readme-writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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