kakafka

package
v0.0.0-...-a2ea4c1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	Messages <-chan kafka.Message
	Commiter func(ctx context.Context, msgs ...kafka.Message) error
	// contains filtered or unexported fields
}

func NewConsumer

func NewConsumer(ctx context.Context, log zerolog.Logger, cfg config.KafkaCfg) *Consumer

func (*Consumer) Run

func (c *Consumer) Run() error

type Producer

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

func NewProducer

func NewProducer(ctx context.Context, cfg config.KafkaCfg, logger zerolog.Logger) *Producer

func (*Producer) Write

func (p *Producer) Write(ctx context.Context, data []byte)

Jump to

Keyboard shortcuts

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