Documentation
¶
Index ¶
- type ParticipatingStoreRepository
- type ProductRepository
- func (r ProductRepository) AddProduct(ctx context.Context, product *domain.Product) error
- func (r ProductRepository) FindProduct(ctx context.Context, id string) (*domain.Product, error)
- func (r ProductRepository) GetCatalog(ctx context.Context, storeID string) ([]*domain.Product, error)
- func (r ProductRepository) RemoveProduct(ctx context.Context, id string) error
- type StoreRepository
- func (r StoreRepository) Delete(ctx context.Context, storeID string) error
- func (r StoreRepository) Find(ctx context.Context, storeID string) (*domain.Store, error)
- func (r StoreRepository) FindAll(ctx context.Context) (stores []*domain.Store, err error)
- func (r StoreRepository) FindParticipatingStores(ctx context.Context) (stores []*domain.Store, err error)
- func (r StoreRepository) Save(ctx context.Context, store *domain.Store) error
- func (r StoreRepository) Update(ctx context.Context, store *domain.Store) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParticipatingStoreRepository ¶
type ParticipatingStoreRepository struct {
// contains filtered or unexported fields
}
func NewParticipatingStoreRepository ¶
func NewParticipatingStoreRepository(tableName string, db *sql.DB) ParticipatingStoreRepository
type ProductRepository ¶
type ProductRepository struct {
// contains filtered or unexported fields
}
func NewProductRepository ¶
func NewProductRepository(tableName string, db *sql.DB) ProductRepository
func (ProductRepository) AddProduct ¶
func (ProductRepository) FindProduct ¶
func (ProductRepository) GetCatalog ¶
func (ProductRepository) RemoveProduct ¶
func (r ProductRepository) RemoveProduct(ctx context.Context, id string) error
type StoreRepository ¶
type StoreRepository struct {
// contains filtered or unexported fields
}
func NewStoreRepository ¶
func NewStoreRepository(tableName string, db *sql.DB) StoreRepository
func (StoreRepository) Delete ¶
func (r StoreRepository) Delete(ctx context.Context, storeID string) error
func (StoreRepository) FindParticipatingStores ¶
Click to show internal directories.
Click to hide internal directories.