Documentation ¶
Index ¶
- type Creator
- type EanMatcher
- type Finder
- func (s *Finder) FindDetailedProducts(paginatedQuery pagination.PaginatedQuery, filters FinderFilters, fetchEan bool, ...) (*pagination.PaginatedData[[]product_repository.Product], error)
- func (s *Finder) FindProductById(productId int64) (*product_repository.Product, error)
- func (s *Finder) FindProductByUrl(url string) (*product_repository.Product, error)
- func (s *Finder) FindProductIdByStoreSlugAndEANs(storeSlug string, eans []string) (int64, error)
- func (s *Finder) FindProductIdByStoreSlugAndSKUs(storeSlug string, skus []string) (int64, error)
- func (s *Finder) QuickSearch(expression string, andElseOr bool) ([]product_repository.Product, error)
- type FinderFilters
- type Handler
- type Matcher
- type MqStoreProduct
- type SkuMatcher
- type Updater
- type UrlMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Creator ¶
type Creator struct { DB *sql.DB StoreRepository *store_repository.Repository ProductRepository *product_repository.Repository ProductMetaRepository *product_repository.MetaRepository PriceRepository *price_repository.Repository StatsRepository *stats_repository.Repository }
func (*Creator) Create ¶
func (s *Creator) Create(storeProduct MqStoreProduct) error
type EanMatcher ¶
type EanMatcher struct {
Finder *Finder
}
func (*EanMatcher) Match ¶
func (m *EanMatcher) Match(storeProduct MqStoreProduct) int64
type Finder ¶
type Finder struct { DB *sql.DB ProductWithStatsRepository *product_repository.ProductWithStatsRepository ProductRepository *product_repository.Repository ProductMetaRepository *product_repository.MetaRepository }
func (*Finder) FindDetailedProducts ¶
func (s *Finder) FindDetailedProducts( paginatedQuery pagination.PaginatedQuery, filters FinderFilters, fetchEan bool, fetchSku bool, ) (*pagination.PaginatedData[[]product_repository.Product], error)
func (*Finder) FindProductById ¶
func (s *Finder) FindProductById(productId int64) (*product_repository.Product, error)
func (*Finder) FindProductByUrl ¶
func (s *Finder) FindProductByUrl(url string) (*product_repository.Product, error)
func (*Finder) FindProductIdByStoreSlugAndEANs ¶
func (*Finder) FindProductIdByStoreSlugAndSKUs ¶
func (*Finder) QuickSearch ¶
type FinderFilters ¶
type FinderFilters struct { ProductId []int64 StoreId *int MinPrice *float64 MaxPrice *float64 NameLike string BrandLike string Available *bool ProductUrl string MinDifference *float64 MaxDifference *float64 MinDiscountPercent *float64 MaxDiscountPercent *float64 MinAveragePrice *float64 MaxAveragePrice *float64 MinMinimumPrice *float64 MaxMinimumPrice *float64 MinMaximumPrice *float64 MaxMaximumPrice *float64 }
type Matcher ¶
type Matcher interface {
Match(storeProduct MqStoreProduct) int64
}
type MqStoreProduct ¶
type SkuMatcher ¶
type SkuMatcher struct {
Finder *Finder
}
func (*SkuMatcher) Match ¶
func (m *SkuMatcher) Match(storeProduct MqStoreProduct) int64
type Updater ¶
type Updater struct { DB *sql.DB StoreRepository *store_repository.Repository ProductRepository *product_repository.Repository ProductMetaRepository *product_repository.MetaRepository PriceRepository *price_repository.Repository StatsRepository *stats_repository.Repository }
type UrlMatcher ¶
type UrlMatcher struct {
Finder *Finder
}
func (*UrlMatcher) Match ¶
func (m *UrlMatcher) Match(storeProduct MqStoreProduct) int64
Click to show internal directories.
Click to hide internal directories.