sarama

package
v0.23.4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAuthSecretName = "kafka-cluster"

Variables

This section is empty.

Functions

func AuthFromSarama added in v0.21.0

func AuthFromSarama(config *sarama.Config) *client.KafkaAuthConfig

AuthFromSarama creates a KafkaAuthConfig using the SASL settings from a given Sarama config, or nil if there is no SASL user in that config

func EnableSaramaLogging

func EnableSaramaLogging(enable bool)

EnableSaramaLogging Is A Utility Function For Enabling Sarama Logging (Debugging)

func LoadEventingKafkaSettings

func LoadEventingKafkaSettings(configMap map[string]string) (*commonconfig.EventingKafkaConfig, error)

func LoadSettings

func LoadSettings(ctx context.Context, clientId string, configMap map[string]string, kafkaAuthConfig *client.KafkaAuthConfig) (*sarama.Config, *commonconfig.EventingKafkaConfig, error)

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

func StringifyHeaderPtrs added in v0.22.0

func StringifyHeaderPtrs(headers []*sarama.RecordHeader) map[string][]string

StringifyHeaderPtrs Is A Pointer-version of the StringifyHeaders function

func StringifyHeaders added in v0.22.0

func StringifyHeaders(headers []sarama.RecordHeader) map[string][]string

StringifyHeaders Is A Utility function to convert []byte headers to string ones for logging purposes

Types

This section is empty.

Jump to

Keyboard shortcuts

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