Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultMaxAttempts = 3 DefaultBatchSize = 16 )
Variables ¶
This section is empty.
Functions ¶
func MapCodecString ¶
MapCodecString maps a codec string to a kafka.Compression.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
type MechanismFactory ¶
MechanismFactory is a function that takes a username and a password and returns a sasl.Mechanism and potentially an error.
func MapMechanismString ¶
func MapMechanismString(mechanism string) (MechanismFactory, error)
MapMechanismString maps a mechanism string to a MechanismFactory.
type Option ¶
type Option func(*Exporter)
func UseSASL ¶
UseSASL configures the exporter to use SASL for authentication with the Kafka brokers.
func WithCompression ¶
func WithCompression(codec kafka.Compression) Option
WithCompression configures the exporter to use the specified compression codec.
func WithLogger ¶
WithLogger sets the logger for the exporter.
Click to show internal directories.
Click to hide internal directories.