Documentation ¶
Index ¶
- func ConnectProducer(brokersUrl []string) (sarama.SyncProducer, error)
- func GetKafkaConfig(username, password string) *sarama.Config
- func RetryKafkaConnection(brokers []string, maxRetries int, retryInterval time.Duration) (sarama.SyncProducer, error)
- func RetryKafkaConnectionMock(brokers []string, maxRetries int, retryInterval time.Duration, ...) (sarama.SyncProducer, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectProducer ¶
func ConnectProducer(brokersUrl []string) (sarama.SyncProducer, error)
func GetKafkaConfig ¶
func RetryKafkaConnection ¶
func RetryKafkaConnection(brokers []string, maxRetries int, retryInterval time.Duration) (sarama.SyncProducer, error)
Retry logic for connecting to Kafka
Types ¶
Click to show internal directories.
Click to hide internal directories.