mq

package
v0.0.0-...-2d053d8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommodityMQ

func NewCommodityMQ(client *kafka.Kafka) repository.CommodityMQ

Types

type CommodityMQ

type CommodityMQ struct {
	// contains filtered or unexported fields
}

func (*CommodityMQ) ConsumeCreateSpuInfo

func (c *CommodityMQ) ConsumeCreateSpuInfo(ctx context.Context) <-chan *kafka.Message

func (*CommodityMQ) ConsumeDeleteSpuInfo

func (c *CommodityMQ) ConsumeDeleteSpuInfo(ctx context.Context) <-chan *kafka.Message

func (*CommodityMQ) ConsumeUpdateSpuInfo

func (c *CommodityMQ) ConsumeUpdateSpuInfo(ctx context.Context) <-chan *kafka.Message

func (*CommodityMQ) Send

func (c *CommodityMQ) Send(ctx context.Context, topic string, message []*kafka.Message) error

func (*CommodityMQ) SendCreateSpuInfo

func (c *CommodityMQ) SendCreateSpuInfo(ctx context.Context, spu *model.Spu) error

func (*CommodityMQ) SendDeleteSpuInfo

func (c *CommodityMQ) SendDeleteSpuInfo(ctx context.Context, id int64) error

func (*CommodityMQ) SendUpdateSpuInfo

func (c *CommodityMQ) SendUpdateSpuInfo(ctx context.Context, spu *model.Spu) error

Jump to

Keyboard shortcuts

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