reviews

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPageNumber = 199
)

Variables

This section is empty.

Functions

func Pages

func Pages(ctx context.Context, appId string, opt *Options, fn func([]*Review) bool) error

Types

type Options

type Options struct {
	Country    string
	Language   string
	PageNumber int
	Sorting    sort.Sort
}

type Review

type Review struct {
	Id        string           `json:"id,omitempty"`
	UserName  string           `json:"user_name"`
	Avatar    string           `json:"avatar,omitempty"`
	Time      time.Time        `json:"time,omitempty"`
	Score     int64            `json:"score"`
	URL       string           `json:"url,omitempty"`
	Text      string           `json:"text,omitempty"`
	ReplyTime time.Time        `json:"reply_time,omitempty"`
	ReplyText string           `json:"reply_text,omitempty"`
	Version   string           `json:"version,omitempty"`
	ThumbsUp  int64            `json:"thumbs_up"`
	Criteria  map[string]int64 `json:"criteria,omitempty"`
}

Review of app

Jump to

Keyboard shortcuts

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