usecases

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRetrievingCategories = errors.New("err_retrieving_categories")
)

Functions

This section is empty.

Types

type Carts

type Carts interface {
	RegisterUserByPhone(ctx context.Context, phone entities.Phone) error
}

func NewUser

func NewUser(logger *zap.Logger, userStorage storage.User) Carts

type Categories

type Categories interface {
	AllCategories(ctx context.Context) ([]entities.Category, error)
	ListCategoryProducts(ctx context.Context, id uint64, options *entities.ListOptions) ([]entities.Product, error)
}

func NewCategories

func NewCategories(logger *zap.Logger,
	categoriesCache cache.Categories,
	categoriesStorage storage.Categories,
) Categories

Jump to

Keyboard shortcuts

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