Documentation ¶
Index ¶
- type CustomerCacheRepository
- type IDArray
- type OrderRepository
- func (r OrderRepository) Add(ctx context.Context, order *models.Order) error
- func (r OrderRepository) Get(ctx context.Context, orderID string) (*models.Order, error)
- func (r OrderRepository) Search(ctx context.Context, search application.SearchOrders) ([]*models.Order, error)
- func (r OrderRepository) UpdateStatus(ctx context.Context, orderID, status string) error
- type ProductCacheRepository
- func (r ProductCacheRepository) Add(ctx context.Context, productID, storeID, name string) error
- func (r ProductCacheRepository) Find(ctx context.Context, productID string) (*models.Product, error)
- func (r ProductCacheRepository) Rebrand(ctx context.Context, productID, name string) error
- func (r ProductCacheRepository) Remove(ctx context.Context, productID string) error
- type StoreCacheRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerCacheRepository ¶
type CustomerCacheRepository struct {
// contains filtered or unexported fields
}
func NewCustomerCacheRepository ¶
func NewCustomerCacheRepository(tableName string, db postgres.DB, fallback application.CustomerRepository) CustomerCacheRepository
type OrderRepository ¶
type OrderRepository struct {
// contains filtered or unexported fields
}
func NewOrderRepository ¶
func NewOrderRepository(tableName string, db postgres.DB) OrderRepository
func (OrderRepository) Search ¶
func (r OrderRepository) Search(ctx context.Context, search application.SearchOrders) ([]*models.Order, error)
func (OrderRepository) UpdateStatus ¶
func (r OrderRepository) UpdateStatus(ctx context.Context, orderID, status string) error
type ProductCacheRepository ¶
type ProductCacheRepository struct {
// contains filtered or unexported fields
}
func NewProductCacheRepository ¶
func NewProductCacheRepository(tableName string, db postgres.DB, fallback application.ProductRepository) ProductCacheRepository
func (ProductCacheRepository) Add ¶
func (r ProductCacheRepository) Add(ctx context.Context, productID, storeID, name string) error
type StoreCacheRepository ¶
type StoreCacheRepository struct {
// contains filtered or unexported fields
}
func NewStoreCacheRepository ¶
func NewStoreCacheRepository(tableName string, db postgres.DB, fallback application.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.