iterator

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 KeywordHandler func(item string) error

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

type UrlHandler func(items []string) error

Jump to

Keyboard shortcuts

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