mq

package
v0.0.0-...-25e9490 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

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

func (c *KafkaAdapter) SendAddGoods(ctx context.Context, uid int64, goods *model.GoodInfo) error

SendAddGoods 将goodsInfo传递到mq

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL