Documentation ¶
Index ¶
- type ProductCacheRepository
- func (r ProductCacheRepository) Add(ctx context.Context, productID, storeID, name string, price float64) error
- func (r ProductCacheRepository) Find(ctx context.Context, productID string) (*domain.Product, error)
- func (r ProductCacheRepository) Rebrand(ctx context.Context, productID, name string) error
- func (r ProductCacheRepository) Remove(ctx context.Context, productID string) error
- func (r ProductCacheRepository) UpdatePrice(ctx context.Context, productID string, delta float64) error
- type StoreCacheRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductCacheRepository ¶
type ProductCacheRepository struct {
// contains filtered or unexported fields
}
func NewProductCacheRepository ¶
func NewProductCacheRepository(tableName string, db postgres.DB, fallback domain.ProductRepository) ProductCacheRepository
func (ProductCacheRepository) Rebrand ¶
func (r ProductCacheRepository) Rebrand(ctx context.Context, productID, name string) error
func (ProductCacheRepository) Remove ¶
func (r ProductCacheRepository) Remove(ctx context.Context, productID string) error
func (ProductCacheRepository) UpdatePrice ¶
type StoreCacheRepository ¶
type StoreCacheRepository struct {
// contains filtered or unexported fields
}
func NewStoreCacheRepository ¶
func NewStoreCacheRepository(tableName string, db postgres.DB, fallback domain.StoreRepository) StoreCacheRepository
func (StoreCacheRepository) Add ¶
func (r StoreCacheRepository) Add(ctx context.Context, storeID, name string) error
Click to show internal directories.
Click to hide internal directories.