Documentation
¶
Index ¶
- func Filter[T any, S ~[]T](slice S, fn func(T) bool) S
- func GetCountryHeader(country, separator string) string
- func In[K comparable](entry K, items ...K) bool
- func Keys[K comparable, V any, M ~map[K]V](m M) []K
- func Map[I, O any, S ~[]I](slice S, fn func(I) O) []O
- func MapCheck[I, O any, S ~[]I](slice S, fn func(I) (O, bool)) []O
- type App
- type AppSpec
- type DataCategory
- type DeveloperSpec
- type HTTPClient
- type ListSpec
- type Privacy
- type Purpose
- type QueryParams
- type Ratings
- type RatingsSpec
- type Review
- type ReviewsSpec
- type SearchSpec
- type Suggest
- type SuggestSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCountryHeader ¶
func In ¶
func In[K comparable](entry K, items ...K) bool
func Keys ¶
func Keys[K comparable, V any, M ~map[K]V](m M) []K
Types ¶
type App ¶
type App struct { ID int64 `json:"trackId"` AppID string `json:"bundleId"` Title string `json:"trackName"` URL string `json:"trackViewUrl"` Description string `json:"description"` Genres []string `json:"genres"` GenreIDs []string `json:"genreIds"` PrimaryGenre string `json:"primaryGenreName"` PrimaryGenreID int64 `json:"primaryGenreId"` ContentRating string `json:"contentAdvisoryRating"` Languages []string `json:"languageCodesISO2A"` Size string `json:"fileSizeBytes"` RequiredOsVersion string `json:"minimumOsVersion"` Released time.Time `json:"releaseDate"` Updated time.Time `json:"currentVersionReleaseDate"` ReleaseNotes string `json:"releaseNotes"` Version string `json:"version"` Price float64 `json:"price"` Currency string `json:"currency"` Free bool `json:"free"` DeveloperID int64 `json:"artistId"` Developer string `json:"artistName"` DeveloperURL string `json:"artistViewUrl"` DeveloperWebsite string `json:"sellerUrl"` Score float64 `json:"averageUserRating"` Reviews int64 `json:"userRatingCount"` CurrentVersionScore float64 `json:"averageUserRatingForCurrentVersion"` CurrentVersionReviews int64 `json:"userRatingCountForCurrentVersion"` Screenshots []string `json:"screenshotUrls"` IpadScreenshots []string `json:"ipadScreenshotUrls"` AppleTVScreenshots []string `json:"appletvScreenshotUrls"` SupportedDevices []string `json:"supportedDevices"` // Icon Icon string ArtworkURL512 string `json:"artworkUrl512"` ArtworkURL100 string `json:"artworkUrl100"` ArtworkURL60 string `json:"artworkUrl60"` // Tech fields WrapperType string `json:"wrapperType"` Ratings Ratings `json:"-"` InAppPurchase bool `json:"-"` }
type DataCategory ¶
type DeveloperSpec ¶
func (DeveloperSpec) Encode ¶
func (spec DeveloperSpec) Encode() string
func (*DeveloperSpec) Validate ¶
func (spec *DeveloperSpec) Validate() error
type Privacy ¶
type Privacy struct { Categories []DataCategory `json:"categories"` Description string `json:"description"` Identifier string `json:"identifier"` Type string `json:"type"` Purposes []Purpose `json:"purposes"` }
type Purpose ¶
type Purpose struct { Categories []DataCategory `json:"categories"` Identifier string `json:"identifier"` Purpose string `json:"purpose"` }
type QueryParams ¶
type QueryParams interface {
Encode() string
}
type RatingsSpec ¶
func (*RatingsSpec) Validate ¶
func (spec *RatingsSpec) Validate() error
type ReviewsSpec ¶
func (ReviewsSpec) Path ¶
func (spec ReviewsSpec) Path(path string) string
func (*ReviewsSpec) Validate ¶
func (spec *ReviewsSpec) Validate() error
type SearchSpec ¶
type SearchSpec struct { Query string Lang string Country string Count int Page int IDsOnly bool // if true apps will not parsed. }
func (SearchSpec) Encode ¶
func (spec SearchSpec) Encode() string
func (*SearchSpec) Validate ¶
func (spec *SearchSpec) Validate() error
type SuggestSpec ¶
func (SuggestSpec) Encode ¶
func (spec SuggestSpec) Encode() string
func (*SuggestSpec) Validate ¶
func (spec *SuggestSpec) Validate() error
Click to show internal directories.
Click to hide internal directories.