consumer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 8 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 NewSaramaConsuemr

func NewSaramaConsuemr(
	config *config.Configuration,
	consumerGroupID string,
	topic string,
	partitions []int32,
	offset int64,
	messagesLimit int32,
	commit bool,
	follow bool,
	fromTime time.Time,
	toTime time.Time,
) *Consumer

func (*Consumer) Cleanup

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

func (*Consumer) ConsumeClaim

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

func (*Consumer) Setup

func (*Consumer) StartConsume

func (c *Consumer) StartConsume(ctx context.Context) (<-chan models.Message, error)

Jump to

Keyboard shortcuts

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