repository

package
v0.0.0-...-1512f51 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachePort

type CachePort interface {
	SetCartCache(ctx context.Context, key string, cart string) error
	GetCartCache(ctx context.Context, key string) (string, error)
	IsKeyExist(ctx context.Context, key string) bool
}

type MqPort

type MqPort interface {
	SendAddGoods(ctx context.Context, uid int64, goods *model.GoodInfo) error
	ConsumeAddGoods(ctx context.Context) <-chan *kafka.Message
}

type PersistencePort

type PersistencePort interface {
	CreateCart(ctx context.Context, uid int64, cart string) error
	GetCartByUserId(ctx context.Context, uid int64) (bool, *model.Cart, error)
	SaveCart(ctx context.Context, uid int64, cart string) error
}

Jump to

Keyboard shortcuts

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