Documentation ¶
Index ¶
- func Attribute(attribute string) func(*SearchOptions) error
- func Country(country string) func(*SearchOptions) error
- func Entity(entity string) func(*SearchOptions) error
- func Explicit(explicit bool) func(*SearchOptions) error
- func Language(language string) func(*SearchOptions) error
- func Limit(limit int) func(*SearchOptions) error
- func Media(media string) func(*SearchOptions) error
- type Artist
- type Content
- type LookupOptions
- type Podcast
- type SearchOptions
- type Software
- type Song
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 (*Artist) ContentType ¶
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 (*Podcast) ContentType ¶
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 (*Software) ContentType ¶
Click to show internal directories.
Click to hide internal directories.