Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Brokers []string
}
Configuration describes the configuration properties needed to create a Kafka producer
func (*Configuration) NewProducer ¶
func (c *Configuration) NewProducer() (sarama.AsyncProducer, error)
NewProducer creates a new asynchronous kafka producer
type ProducerBuilder ¶
type ProducerBuilder interface {
NewProducer() (sarama.AsyncProducer, error)
}
ProducerBuilder builds a new kafka producer
Click to show internal directories.
Click to hide internal directories.