Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NewSaramaConfigImpl = newSaramaConfig NewAdminClientImpl kafka.ClusterAdminClientCreator = kafka.NewSaramaAdminClient )
Functions ¶
func CompleteConfigsAndOpts ¶
func CompleteConfigsAndOpts(sinkURI *url.URL, producerConfig *Config, replicaConfig *config.ReplicaConfig, opts map[string]string) error
CompleteConfigsAndOpts the kafka producer configuration, replication configuration and opts.
Types ¶
type Config ¶
type Config struct { BrokerEndpoints []string PartitionNum int32 // User should make sure that `replication-factor` not greater than the number of kafka brokers. ReplicationFactor int16 Version string MaxMessageBytes int Compression string ClientID string Credential *security.Credential SaslScram *security.SaslScram // control whether to create topic AutoCreate bool // Whether to enable idempotent producer Idempotent bool }
Config stores user specified Kafka producer configuration
Click to show internal directories.
Click to hide internal directories.