package
Version:
v0.0.0-...-ffdedf7
Opens a new window with list of versions in this module.
Published: Aug 1, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewWriter(cfg Config) *kafka.Writer
NewWriter creates a new kafka.Writer.
It is the caller's responsibility to close the writer when done.
type Config struct {
Brokers []string `env:"BROKERS,required" envSeparator:","`
}
Config holds Kafka configuration.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.