Documentation ¶
Index ¶
Constants ¶
View Source
const ( BrokerConfigMapKey = "bootstrapServers" KafkaChannelSeparator = "." // DefaultNumPartitions defines the default number of partitions DefaultNumPartitions = 1 // DefaultReplicationFactor defines the default number of replications DefaultReplicationFactor = 1 DefaultMaxIdleConns = 1000 DefaultMaxIdleConnsPerHost = 100 )
Variables ¶
This section is empty.
Functions ¶
func KafkaConfigMapObserver ¶ added in v0.9.0
func KafkaConfigMapObserver(logger *zap.SugaredLogger) func(configMap *corev1.ConfigMap)
We skip the first call into KafkaConfigMapObserver because it is not an indication of change of the watched ConfigMap but the map's initial state. See the comment for knative.dev/pkg/configmap/watcher.Start()
Types ¶
type KafkaConfig ¶
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.