sarama

package
v0.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigEqual

func ConfigEqual(config1, config2 *sarama.Config, ignore ...interface{}) bool

ConfigEqual is a convenience function to determine if two given sarama.Config structs are identical aside from unserializable fields (e.g. function pointers). To ignore parts of the sarama.Config struct, pass them in as the "ignore" parameter.

func EnableSaramaLogging

func EnableSaramaLogging(enable bool)

Utility Function For Enabling Sarama Logging (Debugging)

func LoadEventingKafkaSettings

func LoadEventingKafkaSettings(configMap *corev1.ConfigMap) (*commonconfig.EventingKafkaConfig, error)

func LoadSettings

Load The Sarama & EventingKafka Configuration From The ConfigMap The Provided Context Must Have A Kubernetes Client Associated With It

func MergeSaramaSettings

func MergeSaramaSettings(config *sarama.Config, configMap *corev1.ConfigMap) (*sarama.Config, error)

Extract The Sarama-Specific Settings From A ConfigMap And Merge Them With Existing Settings If config Is nil, A New sarama.Config Struct Will Be Created With Default Values

func UpdateSaramaConfig

func UpdateSaramaConfig(config *sarama.Config, clientId string, username string, password string)

Utility Function For Configuring Common Settings For Admin/Producer/Consumer

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL