Documentation
¶
Index ¶
Constants ¶
View Source
const ( SASLMechanismPlain = "PLAIN" SASLMechanismScramSHA256 = "SCRAM-SHA-256" SASLMechanismScramSHA512 = "SCRAM-SHA-512" SASLMechanismGSSAPI = "GSSAPI" SASLMechanismOAuthBearer = "OAUTHBEARER" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // General Brokers []string `koanf:"brokers"` ClientID string `koanf:"clientId"` RackID string `koanf:"rackId"` TLS TLSConfig `koanf:"tls"` SASL SASLConfig `koanf:"sasl"` }
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
type KgoZapLogger ¶
type KgoZapLogger struct {
// contains filtered or unexported fields
}
func (KgoZapLogger) Level ¶
func (k KgoZapLogger) Level() kgo.LogLevel
Level Implements kgo.Logger interface. It returns the log level to log at. We pin this to debug as the zap logger decides what to actually send to the output stream.
type SASLConfig ¶
type SASLConfig struct { Enabled bool `koanf:"enabled"` Username string `koanf:"username"` Password string `koanf:"password"` Mechanism string `koanf:"mechanism"` // SASL Mechanisms that require more configuration than username & password GSSAPI SASLGSSAPIConfig `koanf:"gssapi"` }
SASLConfig for Kafka Client
type SASLGSSAPIConfig ¶
type SASLGSSAPIConfig struct { AuthType string `koanf:"authType"` KeyTabPath string `koanf:"keyTabPath"` KerberosConfigPath string `koanf:"kerberosConfigPath"` ServiceName string `koanf:"serviceName"` Username string `koanf:"username"` Password string `koanf:"password"` Realm string `koanf:"realm"` }
SASLGSSAPIConfig represents the Kafka Kerberos config
type TLSConfig ¶
type TLSConfig struct { Enabled bool `koanf:"enabled"` CaFilepath string `koanf:"caFilepath"` CertFilepath string `koanf:"certFilepath"` KeyFilepath string `koanf:"keyFilepath"` Passphrase string `koanf:"passphrase"` InsecureSkipTLSVerify bool `koanf:"insecureSkipTlsVerify"` }
TLSConfig to connect to Kafka via TLS
func (*TLSConfig) SetDefaults ¶
func (c *TLSConfig) SetDefaults()
Click to show internal directories.
Click to hide internal directories.