kafka

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Topic           string
	ProtocolVersion = sarama.V3_0_0_0
	GroupID         string
)

Functions

func StartConsumerGroup

func StartConsumerGroup(ctx context.Context, brokers []string) error

Types

type Consumer

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

func (*Consumer) Cleanup

func (g *Consumer) Cleanup(_ sarama.ConsumerGroupSession) error

func (*Consumer) ConsumeClaim

func (g *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (*Consumer) Setup

Jump to

Keyboard shortcuts

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