Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = types.Module{ {CreateFunc: NewKafka}, {CreateFunc: CreateConfig}, }
Functions ¶
Types ¶
type ConsumerGroup ¶
type ConsumerGroup interface { AddHandler(topic common.Topic, hm common.MessageHandler) Consume() Close() error }
type Kafka ¶
type Kafka struct {
// contains filtered or unexported fields
}
func (*Kafka) NewConsumerGroup ¶
func (k *Kafka) NewConsumerGroup(nameGroup string, opts ...consumergroup.ConsumerGroupOption) (ConsumerGroup, error)
func (*Kafka) NewSyncProducer ¶
func (k *Kafka) NewSyncProducer(opts ...syncproducer.SyncProducerOption) (SyncProducer, error)
Click to show internal directories.
Click to hide internal directories.