DE-121 added config
This commit is contained in:
@@ -21,11 +21,11 @@ func GetSyncProducerConfig(kafkaConfiguration config.KafkaConfigurations) *saram
|
||||
|
||||
// security configs
|
||||
// config.Net.TLS.Enable = true
|
||||
// config.Net.SASL.Enable = true
|
||||
// config.Net.SASL.Handshake = true
|
||||
// config.Net.SASL.Mechanism = sarama.SASLTypePlaintext
|
||||
// config.Net.SASL.User = kafkaConfiguration.Sasl_User
|
||||
// config.Net.SASL.Password = kafkaConfiguration.Sasl_Password
|
||||
config.Net.SASL.Enable = true
|
||||
config.Net.SASL.Handshake = true
|
||||
config.Net.SASL.Mechanism = sarama.SASLTypeSCRAMSHA512
|
||||
config.Net.SASL.User = kafkaConfiguration.Sasl_User
|
||||
config.Net.SASL.Password = kafkaConfiguration.Sasl_Password
|
||||
|
||||
// producer configs
|
||||
// to be changed: read from config file
|
||||
@@ -46,11 +46,11 @@ func GetAsyncProducerConfig(kafkaConfiguration config.KafkaConfigurations) *sara
|
||||
|
||||
// security configs
|
||||
// config.Net.TLS.Enable = true
|
||||
// config.Net.SASL.Enable = true
|
||||
// config.Net.SASL.Handshake = true
|
||||
// config.Net.SASL.Mechanism = sarama.SASLTypePlaintext
|
||||
// config.Net.SASL.User = kafkaConfiguration.Sasl_User
|
||||
// config.Net.SASL.Password = kafkaConfiguration.Sasl_Password
|
||||
config.Net.SASL.Enable = true
|
||||
config.Net.SASL.Handshake = true
|
||||
config.Net.SASL.Mechanism = sarama.SASLTypeSCRAMSHA512
|
||||
config.Net.SASL.User = kafkaConfiguration.Sasl_User
|
||||
config.Net.SASL.Password = kafkaConfiguration.Sasl_Password
|
||||
|
||||
// producer configs
|
||||
// to be changed: read from config file
|
||||
|
||||
Reference in New Issue
Block a user