kafka

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBroker

func GetBroker(zk string) (brokers []string, err error)

func GetKafkaController

func GetKafkaController(zkUrl string) (controller string, err error)

func GetProducer

func GetProducer(broker []string, topic string) (writer *kafka.Writer, err error)

func InitTopic

func InitTopic(zkUrl string, topics ...string) (err error)

func NewConsumer

func NewConsumer(ctx context.Context, zkUrl string, groupId string, topic string, listener func(delivery []byte) error) error

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