consumer

package
v0.0.0-...-2bb46a1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: CC0-1.0, CC0-1.0 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 {
	// contains filtered or unexported fields
}

func NewConsumer

func NewConsumer(brokers []string, group string, topics []string, consumerHandler sarama.ConsumerGroupHandler) (*Consumer, error)

func NewConsumerDefault

func NewConsumerDefault(scanner sarama.ConsumerGroupHandler) (*Consumer, error)

func (*Consumer) Consume

func (c *Consumer) Consume() error

type GroupHandler

type GroupHandler struct {
	Log logservice.Logger
	// contains filtered or unexported fields
}

func NewConsumerGroupHandler

func NewConsumerGroupHandler(scanner *scanner.Scanner, logService logservice.Logger) *GroupHandler

func NewConsumerGroupHandlerDefault

func NewConsumerGroupHandlerDefault(scanner *scanner.Scanner) *GroupHandler

func (*GroupHandler) Cleanup

func (h *GroupHandler) Cleanup(session sarama.ConsumerGroupSession) error

func (*GroupHandler) ConsumeClaim

func (h *GroupHandler) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (*GroupHandler) Setup

func (h *GroupHandler) Setup(session sarama.ConsumerGroupSession) error

type Scanner

type Scanner interface {
}

Jump to

Keyboard shortcuts

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