consumergroup

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTopicExists = errors.New("topic already exists")
)

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) error

func (*ConsumerGroup) Cleanup

func (*ConsumerGroup) Close

func (cg *ConsumerGroup) Close() error

func (*ConsumerGroup) Consume

func (cg *ConsumerGroup) Consume() error

func (*ConsumerGroup) ConsumeClaim

func (*ConsumerGroup) PauseAll added in v1.0.23

func (cg *ConsumerGroup) PauseAll()

func (*ConsumerGroup) ResumeAll added in v1.0.23

func (cg *ConsumerGroup) ResumeAll()

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