Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaAdapter ¶
type KafkaAdapter struct {
// contains filtered or unexported fields
}
KafkaAdapter 这里不是mqAdapter的原因是我们调用的是在pkg封装的kafka
func NewKafkaAdapter ¶
func NewKafkaAdapter(mq *kafka.Kafka) *KafkaAdapter
func (*KafkaAdapter) ConsumeAddGoods ¶
func (c *KafkaAdapter) ConsumeAddGoods(ctx context.Context) <-chan *kafka.Message
func (*KafkaAdapter) SendAddGoods ¶
SendAddGoods 将goodsInfo传递到mq
Click to show internal directories.
Click to hide internal directories.