Documentation ¶
Index ¶
Constants ¶
View Source
const ( BrokerConfigMapKey = "bootstrapServers" ConsumerModeConfigMapKey = "consumerMode" ConsumerModePartitionConsumerValue = "partitions" ConsumerModeMultiplexConsumerValue = "multiplex" KafkaChannelSeparator = "." // DefaultNumPartitions defines the default number of partitions DefaultNumPartitions = 1 // DefaultReplicationFactor defines the default number of replications DefaultReplicationFactor = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KafkaConfig ¶
type KafkaConfig struct { Brokers []string ConsumerMode cluster.ConsumerMode }
func GetKafkaConfig ¶
func GetKafkaConfig(path string) (*KafkaConfig, error)
GetKafkaConfig returns the details of the Kafka cluster.
Click to show internal directories.
Click to hide internal directories.