filter

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 (*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 ProductFilterModel struct {
	ProductId   int
	ProductName string
	ProductUrl  string
}

type ProductLayoutFilter

type ProductLayoutFilter struct {
	ProductFilter
	ProductLayout model_public.PdpGetLayout
}

func CreateProductLayoutFilter

func CreateProductLayoutFilter(base BaseFilter, product model_public.PdpGetLayout) *ProductLayoutFilter

type Shop

type Shop struct {
	Id     int
	Domain string
}

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

Jump to

Keyboard shortcuts

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