itunes

package module
v0.0.0-...-d9a5826 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attribute

func Attribute(attribute string) func(*SearchOptions) error

func Country

func Country(country string) func(*SearchOptions) error

func Entity

func Entity(entity string) func(*SearchOptions) error

func Explicit

func Explicit(explicit bool) func(*SearchOptions) error

func Language

func Language(language string) func(*SearchOptions) error

func Limit

func Limit(limit int) func(*SearchOptions) error

func Media

func Media(media string) func(*SearchOptions) error

Types

type Artist

type Artist struct {
	WrapperType string `json:"wrapperType"`
	ArtistName  string `json:"artistName"`
}

func (*Artist) ContentKind

func (o *Artist) ContentKind() string

func (*Artist) ContentType

func (o *Artist) ContentType() string

type Content

type Content interface {
	ContentType() string
	ContentKind() string
}

func Lookup

func Lookup(id int, options ...func(*LookupOptions) error) ([]Content, error)
func Search(term string, options ...func(*SearchOptions) error) ([]Content, error)

type LookupOptions

type LookupOptions struct {
	ID int `url:"id"`
}

type Podcast

type Podcast struct {
	WrapperType string `json:"wrapperType"`
	Kind        string `json:"kind"`
	FeedURL     string `json:"feedUrl"`
}

func (*Podcast) ContentKind

func (o *Podcast) ContentKind() string

func (*Podcast) ContentType

func (o *Podcast) ContentType() string

type SearchOptions

type SearchOptions struct {
	Term      string `url:"term"`
	Country   string `url:"country,omitempty"`
	Media     string `url:"media,omitempty"`
	Entity    string `url:"entity,omitempty"`
	Attribute string `url:"attribute,omitempty"`
	Limit     int    `url:"limit,omitempty"`
	Language  string `url:"language,omitempty"`
	Explicit  bool   `url:"explicit,omitempty"`
}

type Software

type Software struct {
	WrapperType                        string  `json:"wrapperType"`
	Kind                               string  `json:"kind"`
	ArtistName                         string  `json:"artistName"`
	ArtistID                           int     `json:"artistId"`
	TrackName                          string  `json:"trackName"`
	TrackCensoredName                  string  `json:"trackCensoredName"`
	TrackID                            int     `json:"trackId"`
	AverageUserRating                  float64 `json:"averageUserRating"`
	UserRatingCount                    int     `json:"userRatingCount"`
	AverageUserRatingForCurrentVersion float64 `json:"averageUserRatingForCurrentVersion"`
	UserRatingCountForCurrentVersion   int     `json:"userRatingCountForCurrentVersion"`
	Version                            string  `json:"string"`
}

func (*Software) ContentKind

func (o *Software) ContentKind() string

func (*Software) ContentType

func (o *Software) ContentType() string

type Song

type Song struct {
	WrapperType string `json:"wrapperType"`
	Kind        string `json:"kind"`
}

func (*Song) ContentKind

func (o *Song) ContentKind() string

func (*Song) ContentType

func (o *Song) ContentType() string

Jump to

Keyboard shortcuts

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