Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildKgoSASL ¶ added in v0.5.0
func BuildKgoSASL(cfg SASLConfig) (sasl.Mechanism, error)
BuildKgoSASL maps a mailer SASLConfig to a franz-go SASL mechanism (used by the transactional Kafka sink, which is built on franz-go). Returns an error if the mechanism is unsupported.
func BuildSASLMechanism ¶
func BuildSASLMechanism(cfg SASLConfig) (sasl.Mechanism, error)
BuildSASLMechanism maps a mailer SASLConfig to a kafka-go SASL mechanism. Returns an error if the mechanism is unsupported.
Types ¶
type SASLConfig ¶
type SASLConfig struct {
Mechanism SASLMechanism
Username string
Password string
}
SASLConfig holds Kafka SASL authentication settings. Used with the KafkaSASL (source) and KafkaSinkSASL (sink) options.
type SASLMechanism ¶
type SASLMechanism string
SASLMechanism identifies a Kafka SASL authentication mechanism.
const ( SASLPlain SASLMechanism = "PLAIN" SASLScramSHA256 SASLMechanism = "SCRAM-SHA-256" SASLScramSHA512 SASLMechanism = "SCRAM-SHA-512" )
Click to show internal directories.
Click to hide internal directories.