kafka

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GolLogTopic = "global_log"

Variables

View Source
var (
	KafkaClient  sarama.ConsumerGroup
	KafkaProduct sarama.SyncProducer
)

Functions

func GetKafkaClient

func GetKafkaClient() (sarama.ConsumerGroup, context.Context, error)

生成 kafka 消费实例

func GetKafkaClientByGroupId added in v1.4.1

func GetKafkaClientByGroupId(groupID string) (sarama.ConsumerGroup, context.Context, error)

生成 kafka 消费实例

func GetkafkaProduct

func GetkafkaProduct() (sarama.SyncProducer, error)

生成 kafka 生产者实例

Types

This section is empty.

Jump to

Keyboard shortcuts

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