Documentation
¶
Index ¶
- type StorefrontRepository
- func (r StorefrontRepository) Activate(ctx context.Context, id, version uint) error
- func (r StorefrontRepository) CountByFilter(ctx context.Context) (int, error)
- func (r StorefrontRepository) Create(ctx context.Context, i *entity.Storefront) error
- func (r StorefrontRepository) Delete(ctx context.Context, id uint) error
- func (r StorefrontRepository) FindActive(ctx context.Context) (*entity.Storefront, error)
- func (r StorefrontRepository) FindByFilter(ctx context.Context, data *repository.FindByFilterStorefrontData) ([]entity.Storefront, error)
- func (r StorefrontRepository) FindByID(ctx context.Context, id uint) (*entity.Storefront, error)
- func (r StorefrontRepository) Update(ctx context.Context, i *entity.Storefront) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorefrontRepository ¶
type StorefrontRepository struct {
// contains filtered or unexported fields
}
func New ¶
func New(env *env.Postgres, tx *transactor.Transactor) StorefrontRepository
func (StorefrontRepository) Activate ¶
func (r StorefrontRepository) Activate(ctx context.Context, id, version uint) error
func (StorefrontRepository) CountByFilter ¶
func (r StorefrontRepository) CountByFilter(ctx context.Context) (int, error)
func (StorefrontRepository) Create ¶
func (r StorefrontRepository) Create(ctx context.Context, i *entity.Storefront) error
Create inserts new storefront in db
func (StorefrontRepository) Delete ¶
func (r StorefrontRepository) Delete(ctx context.Context, id uint) error
Delete storefront from db
func (StorefrontRepository) FindActive ¶
func (r StorefrontRepository) FindActive(ctx context.Context) (*entity.Storefront, error)
func (StorefrontRepository) FindByFilter ¶
func (r StorefrontRepository) FindByFilter(ctx context.Context, data *repository.FindByFilterStorefrontData) ([]entity.Storefront, error)
func (StorefrontRepository) FindByID ¶
func (r StorefrontRepository) FindByID(ctx context.Context, id uint) (*entity.Storefront, error)
func (StorefrontRepository) Update ¶
func (r StorefrontRepository) Update(ctx context.Context, i *entity.Storefront) error
Update inserts new storefront version in db
Click to show internal directories.
Click to hide internal directories.