Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartConsumer ¶
func StartConsumer(cfg *ConsumerConfig) (*kafka.Reader, error)
func StartProducer ¶
func StartProducer(cfg *ProducerConfig) (*kafka.Writer, error)
Types ¶
type ConsumerConfig ¶
type ConsumerConfig struct { Brokers []string SaslConfig *SaslConfig Topic string GroupID string ConsumerOffset int64 }
func (ConsumerConfig) String ¶
func (this ConsumerConfig) String() string
type ProducerConfig ¶
type ProducerConfig struct { Brokers []string SaslConfig *SaslConfig Topic string BatchSize int BatchBytes int Balancer string }
func (ProducerConfig) String ¶
func (this ProducerConfig) String() string
type SaslConfig ¶
type SaslConfig struct { SaslMechanism string SaslUsername string SaslPassword string KafkaCA string }
func (SaslConfig) String ¶
func (this SaslConfig) String() string
Click to show internal directories.
Click to hide internal directories.