producer

package
v0.0.0-...-1e03f0b Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package producer provides kafka producer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Producer

type Producer interface {
	Start()
	Stop()
}

Producer читает из канала событий и отправляет в кафку, в n потоков

func NewKafkaProducer

func NewKafkaProducer(
	n uint64,
	sender sender.EventSender,
	events <-chan model.PackageEvent,
	repo repo.EventRepo,
	workerPool *workerpool.WorkerPool,
) Producer

NewKafkaProducer конструктор

Jump to

Keyboard shortcuts

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