shovel

package
v0.0.0-...-6377438 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SourceTopicConsumer *kafka.Consumer
	Logger              *zerolog.Logger
	Rdb                 *redis.Client
	Producer            *producer.CommonProducer
	SourceTopicName     string
	TargetTopicName     string
	PoisonedTopicName   string
	Name                string
	MaxErrorCount       int
	IsPoisonedTopic     bool
}

type Shovel

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

func New

func New(cfg Config) *Shovel

func (*Shovel) ConsumeWithTimeout

func (consumer *Shovel) ConsumeWithTimeout(wg *sync.WaitGroup, timeout time.Duration)

func (*Shovel) Process

func (consumer *Shovel) Process(msg *kafka.Message) error

Jump to

Keyboard shortcuts

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