Documentation ¶
Index ¶
- type BaseFilter
- func (filter *BaseFilter) LastLogin(lastLogin int64) bool
- func (filter *BaseFilter) LastReview(lastReview int64) bool
- func (filter *BaseFilter) MaxPoint(point int) bool
- func (filter *BaseFilter) MinPoint(point int) bool
- func (filter *BaseFilter) Sold(sold int) bool
- func (filter *BaseFilter) SoldPercentage(soldPercentage int) bool
- func (filter *BaseFilter) Stock(stock int) bool
- type ProductDetailFilter
- type ProductFilter
- type ProductFilterModel
- type ProductLayoutFilter
- type Shop
- type ShopFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseFilter ¶
type BaseFilter struct { GrabBasic *legacy.GrabBasic GrabTokopedia *legacy.GrabTokopedia // contains filtered or unexported fields }
func CreateBaseFilter ¶
func CreateBaseFilter(api *api_public.TokopediaApiPublic, base *legacy_source.BaseConfig) *BaseFilter
func (*BaseFilter) LastLogin ¶
func (filter *BaseFilter) LastLogin(lastLogin int64) bool
func (*BaseFilter) LastReview ¶
func (filter *BaseFilter) LastReview(lastReview int64) bool
func (*BaseFilter) MaxPoint ¶
func (filter *BaseFilter) MaxPoint(point int) bool
func (*BaseFilter) MinPoint ¶
func (filter *BaseFilter) MinPoint(point int) bool
func (*BaseFilter) Sold ¶
func (filter *BaseFilter) Sold(sold int) bool
func (*BaseFilter) SoldPercentage ¶
func (filter *BaseFilter) SoldPercentage(soldPercentage int) bool
func (*BaseFilter) Stock ¶
func (filter *BaseFilter) Stock(stock int) bool
type ProductDetailFilter ¶
type ProductDetailFilter struct { ProductLayoutFilter ProductP2 model_public.PdpGetData }
func CreateProductDetailFilter ¶
func CreateProductDetailFilter(base BaseFilter, product model_public.PdpGetLayout, productP2 model_public.PdpGetData) *ProductDetailFilter
type ProductFilter ¶
type ProductFilter struct { BaseFilter Product ProductFilterModel }
func CreateProductFilter ¶
func CreateProductFilter(base BaseFilter, product ProductFilterModel) *ProductFilter
func (*ProductFilter) ApplyFilter ¶
func (filter *ProductFilter) ApplyFilter() bool
func (*ProductFilter) FilterLastLogin ¶
func (filter *ProductFilter) FilterLastLogin() bool
func (*ProductFilter) FilterLastReview ¶
func (filter *ProductFilter) FilterLastReview() bool
func (*ProductFilter) FilterLayout ¶
func (filter *ProductFilter) FilterLayout() bool
type ProductFilterModel ¶
type ProductLayoutFilter ¶
type ProductLayoutFilter struct { ProductFilter ProductLayout model_public.PdpGetLayout }
func CreateProductLayoutFilter ¶
func CreateProductLayoutFilter(base BaseFilter, product model_public.PdpGetLayout) *ProductLayoutFilter
type ShopFilter ¶
type ShopFilter struct { BaseFilter Shop Shop }
func CreateShopFilter ¶
func CreateShopFilter(base BaseFilter, shop Shop) *ShopFilter
func (*ShopFilter) ApplyFilter ¶
func (filter *ShopFilter) ApplyFilter() bool
func (*ShopFilter) FilterPoint ¶
func (filter *ShopFilter) FilterPoint() bool
func (*ShopFilter) RatingFilter ¶
func (filter *ShopFilter) RatingFilter(rating float64) bool
Click to show internal directories.
Click to hide internal directories.