kafka

package
v0.0.0-...-efd361b Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KafkaReader *kafka.Reader
View Source
var KafkaWriter *kafka.Writer

Functions

func InitKafkaReader

func InitKafkaReader()

func InitKafkaWriter

func InitKafkaWriter()

make a writer that produces to topic-A, using the least-bytes distribution

func Struct2Message

func Struct2Message(key string, st interface{}) (*kafka.Message, error)

func WriteMessages

func WriteMessages(ctx context.Context, msgs ...kafka.Message) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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