postgres

package
v0.0.0-...-3a9fddd Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 *sql.DB, fallback domain.ProductRepository) ProductCacheRepository

func (ProductCacheRepository) Add

func (r ProductCacheRepository) Add(ctx context.Context, productID, storeID, name string) error

func (ProductCacheRepository) Find

func (r ProductCacheRepository) Find(ctx context.Context, productID string) (*domain.Product, error)

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

type ShoppingListRepository

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

func NewShoppingListRepository

func NewShoppingListRepository(tableName string, db *sql.DB) ShoppingListRepository

func (ShoppingListRepository) Find

func (ShoppingListRepository) Save

func (ShoppingListRepository) Update

type StoreCacheRepository

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

func NewStoreCacheRepository

func NewStoreCacheRepository(tableName string, db *sql.DB, fallback domain.StoreRepository) StoreCacheRepository

func (StoreCacheRepository) Add

func (r StoreCacheRepository) Add(ctx context.Context, storeID, name, location string) error

func (StoreCacheRepository) Find

func (r StoreCacheRepository) Find(ctx context.Context, storeID string) (*domain.Store, error)

func (StoreCacheRepository) Rename

func (r StoreCacheRepository) Rename(ctx context.Context, storeID, name string) error

Jump to

Keyboard shortcuts

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