Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
func NewConsumer(conf *KfkConsumCfg) (*Consumer, error)
type KfkConsumCfg ¶
type KfkProducerCfg ¶
type KfkProducerCfg struct { Brokers []string `yaml:"brokers"` Topic string `yaml:"topic"` Acks int `yaml:"acks"` Async bool `yaml:"async"` Timeout int `yaml:"timeout"` Sasl SaslCfg `yaml:"sasl"` AllowAutoTopicCreation bool `yaml:"allow_auto_topic_creation"` BatchSize int `yaml:"batch_size"` BatchBytes int `yaml:"batch_bytes"` }
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer(cfg *KfkProducerCfg) (*Producer, error)
Click to show internal directories.
Click to hide internal directories.