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 конструктор
Click to show internal directories.
Click to hide internal directories.