kafka

package
v0.0.0-...-4e27f62 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKafkaConsumer

func CreateKafkaConsumer(addrs []string, id, groupID string) (sarama.ConsumerGroup, error)

Types

type AsyncProducer

type AsyncProducer struct {
	Producer sarama.AsyncProducer
	// contains filtered or unexported fields
}

func NewAsyncProducer

func NewAsyncProducer(ctx context.Context, id string, brokers []string) (*AsyncProducer, error)

func (*AsyncProducer) Close

func (kp *AsyncProducer) Close()

type ZapSaramaLogger

type ZapSaramaLogger struct {
	// contains filtered or unexported fields
}

func (*ZapSaramaLogger) Print

func (l *ZapSaramaLogger) Print(v ...interface{})

func (*ZapSaramaLogger) Printf

func (l *ZapSaramaLogger) Printf(format string, v ...interface{})

func (*ZapSaramaLogger) Println

func (l *ZapSaramaLogger) Println(v ...interface{})

Jump to

Keyboard shortcuts

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