Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewSyncProducerFn = SaramaNewSyncProducerWrapper
Function Variables To Facilitate Mocking Of Sarama Functionality In Unit Tests
Functions ¶
func SaramaNewSyncProducerWrapper ¶
func SaramaNewSyncProducerWrapper(brokers []string, config *sarama.Config) (sarama.SyncProducer, error)
The Production Sarama NewSyncProducer Wrapper Function
Types ¶
type NewSyncProducerFnType ¶
type NewSyncProducerFnType = func(brokers []string, config *sarama.Config) (sarama.SyncProducer, error)
Define Function Type For Wrapper Variables (Typesafe Stubbing For Tests)
Click to show internal directories.
Click to hide internal directories.