kfk

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GobalKafka sarama.Client

Functions

func GetDefaultConsumeConfig added in v0.1.1

func GetDefaultConsumeConfig(assignor string) *sarama.Config

func InitKafka

func InitKafka()

func KafkaProducer

func KafkaProducer(topic string, msg []byte) (err error)

KafkaProducer 发送单条

func KafkaProducers

func KafkaProducers(messages []*sarama.ProducerMessage) (err error)

KafkaProducers 发送多条,topic在messages中

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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