retranslator

package
v0.0.0-...-649deb4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package retranslator get events from database (consumer) and send to kafka (producer)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ChannelSize uint64

	ConsumerCount  uint64
	ConsumeSize    uint64
	ConsumeTimeout time.Duration

	ProducerCount uint64
	WorkerCount   uint64

	Repo   repo.EventRepo
	Sender sender.EventSender
}

Config конфигурация Retranslator

type Retranslator

type Retranslator interface {
	Start()
	Stop()
}

Retranslator считывает события из БД и отправляет в кафку

func NewRetranslator

func NewRetranslator(cfg Config) Retranslator

NewRetranslator конструктор

Jump to

Keyboard shortcuts

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