consumergroup

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerGroup

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

func NewConsumerGroup

func NewConsumerGroup(
	cfg common.Config,
	name string,
	logger *zap.Logger,
	opts ...ConsumerGroupOption,
) (*ConsumerGroup, error)

func (*ConsumerGroup) AddHandler

func (cg *ConsumerGroup) AddHandler(topic common.Topic, hm common.MessageHandler)

func (*ConsumerGroup) Cleanup

func (*ConsumerGroup) Close

func (cg *ConsumerGroup) Close() error

func (*ConsumerGroup) Consume

func (cg *ConsumerGroup) Consume()

func (*ConsumerGroup) ConsumeClaim

func (*ConsumerGroup) Setup

type ConsumerGroupOption

type ConsumerGroupOption func(cg *ConsumerGroup)

func ConfigOption

func ConfigOption(cfg *sarama.Config) ConsumerGroupOption

func ErrFuncOption

func ErrFuncOption(f common.ErrFunc) ConsumerGroupOption

Jump to

Keyboard shortcuts

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