Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKafkaConn ¶
func NewKafkaReader ¶
func NewKafkaWriter ¶
func NewKafkaWriter(brokers []string) *kafka.Writer
Types ¶
type ConsumerGroup ¶
type ConsumerGroup interface { ConsumeTopic(ctx context.Context, poolSize int, groupID string, topic string, worker Worker) GetNewKafkaReader(kafkaURL []string, topic, groupID string) *kafka.Reader GetNewKafkaWriter() *kafka.Writer }
func NewConsumerGroup ¶
func NewConsumerGroup(brokers []string, log logger.Logger) ConsumerGroup
Click to show internal directories.
Click to hide internal directories.