collection

package
v0.0.0-...-4fd7eb7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPageNumber = 200
)

Variables

This section is empty.

Functions

func Pages

func Pages(ctx context.Context, reqUrl string, opt *Options, fn func(results []*Result) bool) error

Types

type Collection

type Collection string
const (
	TopFree     Collection = "topselling_free"
	TopGrossing Collection = "topgrossing"
	TopNewFree  Collection = "topselling_new_free"
	TopNewPaid  Collection = "topselling_new_paid"
	TopPaid     Collection = "topselling_paid"
	TopTrending Collection = "movers_shakers"
)

type Options

type Options struct {
	sort.Sort
	category.Category
	age.Age
	PriceType  price.Type
	PageNumber int64
	Country    string
	Language   string
	PriceMin   float64
	PriceMax   float64
	ScoreMin   float64
	ScoreMax   float64
}

type Result

type Result struct {
	Country      string       `json:"country,omitempty"`
	Developer    string       `json:"developer,omitempty"`
	DeveloperId  string       `json:"developer_id,omitempty"`
	DeveloperURL string       `json:"developer_url,omitempty"`
	Free         bool         `json:"free"`
	Icon         string       `json:"icon,omitempty"`
	Language     string       `json:"language,omitempty"`
	Price        *price.Price `json:"price,omitempty"`
	PriceText    string       `json:"price_text,omitempty"`
	Score        float64      `json:"score"`
	ScoreText    string       `json:"score_text,omitempty"`
	Summary      string       `json:"summary,omitempty"`
	Title        string       `json:"title,omitempty"`
	URL          string       `json:"url,omitempty"`
}

Jump to

Keyboard shortcuts

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