Documentation ¶
Overview ¶
For generate mocks on sarama interfaces
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKafkaClient ¶
func NewKafkaClient(cfg KafkaConfig) (sarama.Client, error)
NewKafkaClient return new sarama.Client interface
Types ¶
type KafkaConfig ¶
type KafkaConfig struct {
Brokers []string `mapstructure:"brokers"`
}
type SaramaAsyncProducer ¶
type SaramaAsyncProducer interface { sarama.AsyncProducer }
Click to show internal directories.
Click to hide internal directories.