kafka

package
v0.0.0-...-6a6c3f4 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsumerGroup

func NewConsumerGroup(groupID string, address ...string) (group sarama.ConsumerGroup, err error)

func NewMessage

func NewMessage(topic string, key string, value string) (msg *sarama.ProducerMessage)

func NewSyncProducer

func NewSyncProducer(address ...string) (producer sarama.SyncProducer, err error)

func SendMessage

func SendMessage(producer sarama.SyncProducer, msg *sarama.ProducerMessage) (partition int32, offset int64, err error)

Types

type ConsumerGroupHandler

type ConsumerGroupHandler struct{}

func (ConsumerGroupHandler) Cleanup

func (ConsumerGroupHandler) ConsumeClaim

func (ConsumerGroupHandler) Setup

Jump to

Keyboard shortcuts

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