Documentation ¶
Index ¶
- func IterateBatchLayout(api *api_public.TokopediaApiPublic, ctx context.Context, urls []string, ...) (err error)
- func IterateCategoryCsv(base *legacy_source.BaseConfig, handler CategoryCsvHandler) error
- func IterateKeywords(fname string, handler KeywordHandler) error
- func IterateProductShopPage(api *api_public.TokopediaApiPublic, ctx context.Context, ...) error
- func IterateSearchPage(api *api_public.TokopediaApiPublic, ctx context.Context, ...) error
- func IterateShops(api *api_public.TokopediaApiPublic, fname string, handler ShopHandler) error
- func IterateUrls(fname string, handler UrlHandler) error
- type BatchLayoutHandler
- type CategoryCsvHandler
- type KeywordHandler
- type ProductShopHandler
- type SearchPageHandler
- type ShopHandler
- type UrlHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IterateBatchLayout ¶
func IterateBatchLayout( api *api_public.TokopediaApiPublic, ctx context.Context, urls []string, handler BatchLayoutHandler, ) (err error)
func IterateCategoryCsv ¶
func IterateCategoryCsv(base *legacy_source.BaseConfig, handler CategoryCsvHandler) error
func IterateKeywords ¶
func IterateKeywords(fname string, handler KeywordHandler) error
func IterateProductShopPage ¶
func IterateProductShopPage( api *api_public.TokopediaApiPublic, ctx context.Context, searchVar *model_public.ShopProductVar, handler ProductShopHandler, ) error
func IterateSearchPage ¶
func IterateSearchPage( api *api_public.TokopediaApiPublic, ctx context.Context, searchVar *model_public.SearchProductVar, handler SearchPageHandler, ) error
func IterateShops ¶
func IterateShops(api *api_public.TokopediaApiPublic, fname string, handler ShopHandler) error
func IterateUrls ¶
func IterateUrls(fname string, handler UrlHandler) error
Types ¶
type BatchLayoutHandler ¶
type BatchLayoutHandler func(layout *model_public.PdpGetlayoutQueryResp) error
type CategoryCsvHandler ¶
type CategoryCsvHandler func(item *csv.CategoryCsv) error
type KeywordHandler ¶
type ProductShopHandler ¶
type ProductShopHandler func(items []*model_public.ShopProductData) error
type SearchPageHandler ¶
type SearchPageHandler func(items []*model_public.ProductSearch) error
type ShopHandler ¶
type ShopHandler func(shopCore *model_public.ShopCoreInfoResp) error
type UrlHandler ¶
Click to show internal directories.
Click to hide internal directories.