Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MaxProducers uint64 `yaml:"maxProducers"` BatchSize uint64 `yaml:"batchSize"` Timeout time.Duration `yaml:"timeout"` }
Config object to store producer configurations into.
type Producer ¶
Producer is the interface not to be used directly.
See Retranslator.
func NewKafkaProducer ¶
func NewKafkaProducer( cfg *Config, eventSender sender.EventSender, cleaner repo.EventCleaner, updater repo.EventUpdater, events <-chan model.BasketEvent, workerPool *workerpool.WorkerPool, logger *zap.Logger, ) Producer
NewKafkaProducer returns a new Kafka producer.
Click to show internal directories.
Click to hide internal directories.