Versions in this module Expand all Collapse all v0 v0.0.1 Dec 3, 2021 Changes in this version + type Album struct + Artist AlbumArtist + Attr ArtistAttr + Image []Image + MBID string + Name string + Playcount int + URL string + type AlbumArtist struct + MBID string + Name string + URL string + type AlbumAttr struct + Album string + Artist string + type AlbumMatches struct + Album []SimpleAlbum + type AlbumPersonalTag struct + Albums []Album + type AlbumPersonalTags struct + AlbumTags AlbumPersonalTag + Attr PersonalTagAttr + type AlbumRanked struct + Artist AlbumArtist + Attr Rank + Image []Image + MBID string + Name string + Playcount string + URL string + type AlbumRecent struct + MBID string + Text string + type AlbumSearchRes struct + AlbumMatches AlbumMatches + Attr SearchAttr + Query OpenSearchQuery + QueryItemsPerPage string + QueryStartIndex string + QueryTotalResults string + type AlbumTopTags struct + Attr AlbumAttr + Tag []TagWithCount + type AlbumTracks struct + Track []TrackAlbum + type Artist struct + Image []Image + Listeners string + MBID string + Match string + Name string + Streamable string + URL string + type ArtistAlbums struct + Album []Album + Attr ArtistAttr + type ArtistAttr struct + Artist string + Page string + PerPage string + Total string + TotalPages string + type ArtistMatches struct + Artist []Artist + type ArtistPersonalTag struct + Artists []Artist + type ArtistPersonalTags struct + ArtistTags ArtistPersonalTag + Attr PersonalTagAttr + type ArtistRanked struct + Attr Rank + Image []Image + MBID string + Name string + Playcount string + Streamable string + URL string + type ArtistRecent struct + Image []Image + MBID string + Name string + Text string + URL string + type ArtistSearchRes struct + ArtistMatches ArtistMatches + Attr SearchAttr + Query OpenSearchQuery + QueryItemsPerPage string + QueryStartIndex string + QueryTotalResults string + type ArtistStats struct + Listeners string + Playcount string + type ArtistTagAttr struct + Artist string + type ArtistTrackAttr struct + Artist string + Track string + type Artists struct + Artist []BareArtist + type BareArtist struct + Image []Image + Name string + URL string + type Binary string + const One + const Zero + type Bio struct + Content string + Links Links + Published string + Summary string + type ChartArtist struct + Image []Image + Listeners string + MBID string + Name string + Playcount string + Streamable string + URL string + type ChartAttr struct + Page string + PerPage string + Total string + TotalPages string + type ChartDates struct + From string + Text string + To string + type ChartTag struct + Name string + Reach string + Streamable string + Taggings string + URL string + Wiki Wiki + type ChartTrack struct + Artist AlbumArtist + Duration string + Image []Image + Listeners string + MBID string + Name string + Playcount string + Streamable StreamableTrack + URL string + type ChartTracks struct + Attr ChartAttr + Track []ChartTrack + type Client struct + User string + func New(httpClient *http.Client, key string, secret string) *Client + func (c *Client) AlbumGetInfo(album, artist string, opts ...RequestOption) (FullAlbum, error) + func (c *Client) AlbumGetTopTags(album, artist string, opts ...RequestOption) (AlbumTopTags, error) + func (c *Client) AlbumSearch(album string, opts ...RequestOption) (AlbumSearchRes, error) + func (c *Client) ArtistGetInfo(artist string, opts ...RequestOption) (FullArtist, error) + func (c *Client) ArtistGetSimilar(artist string, opts ...RequestOption) (SimilarArtists, error) + func (c *Client) ArtistGetTopAlbums(artist string, opts ...RequestOption) (ArtistAlbums, error) + func (c *Client) ArtistGetTopTags(artist string, opts ...RequestOption) (TagsWithCount, error) + func (c *Client) ArtistGetTopTracks(artist string, opts ...RequestOption) (Tracks, error) + func (c *Client) ArtistSearch(artist string, opts ...RequestOption) (ArtistSearchRes, error) + func (c *Client) ChartGetTopArtists(opts ...RequestOption) (TopArtists, error) + func (c *Client) ChartGetTopTags(opts ...RequestOption) (TopTags, error) + func (c *Client) ChartGetTopTracks(opts ...RequestOption) (ChartTracks, error) + func (c *Client) GeoGetTopArtists(country string, opts ...RequestOption) (GeoTopArtists, error) + func (c *Client) GeoGetTopTracks(country string, opts ...RequestOption) (GeoTopTracks, error) + func (c *Client) LibraryGetArtists(user string, opts ...RequestOption) (LibraryArtists, error) + func (c *Client) SetUser(user string) error + func (c *Client) TagGetInfo(tag string, opts ...RequestOption) (TagInfo, error) + func (c *Client) TagGetTopAlbums(tag string, opts ...RequestOption) (TagTopAlbums, error) + func (c *Client) TagGetTopArtists(tag string, opts ...RequestOption) (TagTopArtists, error) + func (c *Client) TagGetTopTags() (TagTopTags, error) + func (c *Client) TagGetTopTracks(tag string, opts ...RequestOption) (TagTopTracks, error) + func (c *Client) TagGetWeeklyChartlist(tag string) (TagWeeklyChartlist, error) + func (c *Client) TrackGetCorrection(track, artist string) (TrackCorrection, error) + func (c *Client) TrackGetInfo(track, artist string, opts ...RequestOption) (TrackInfo, error) + func (c *Client) TrackGetSimilar(track, artist string, opts ...RequestOption) (SimilarTracks, error) + func (c *Client) TrackGetTags(artist, track, user string, opts ...RequestOption) (TrackTags, error) + func (c *Client) TrackGetTopTags(artist, track, user string, opts ...RequestOption) (TrackTopTags, error) + func (c *Client) TrackSearch(track string, opts ...RequestOption) (TrackSearchRes, error) + func (c *Client) UserGetFriends(user string, opts ...RequestOption) (UserFriends, error) + func (c *Client) UserGetInfo(user string) (User, error) + func (c *Client) UserGetLovedTracks(user string, opts ...RequestOption) (UserLovedTracks, error) + func (c *Client) UserGetPersonalAlbumTags(user, tag string, opts ...RequestOption) (AlbumPersonalTags, error) + func (c *Client) UserGetPersonalArtistTags(user, tag string, opts ...RequestOption) (ArtistPersonalTags, error) + func (c *Client) UserGetPersonalTrackTags(user, tag string, opts ...RequestOption) (TrackPersonalTags, error) + func (c *Client) UserGetRecentTracks(user string, opts ...RequestOption) (UserRecentTracks, error) + func (c *Client) UserGetTopAlbums(user string, opts ...RequestOption) (UserTopAlbums, error) + func (c *Client) UserGetTopArtists(user string, opts ...RequestOption) (UserTopArtists, error) + func (c *Client) UserGetTopTags(user string, opts ...RequestOption) (UserTopTags, error) + func (c *Client) UserGetTopTracks(user string, opts ...RequestOption) (UserTopTracks, error) + func (c *Client) UserGetWeeklyAlbumChart(user string, opts ...RequestOption) (UserWeeklyAlbumChart, error) + func (c *Client) UserGetWeeklyArtistChart(user string, opts ...RequestOption) (UserWeeklyArtistChart, error) + func (c *Client) UserGetWeeklyChartList(user string) (UserWeeklyChartList, error) + func (c *Client) UserGetWeeklyTrackChart(user string, opts ...RequestOption) (UserWeeklyTrackChart, error) + type CorrectedAttr struct + ArtistCorrected string + Index string + TrackCorrected string + type CorrectedTrack struct + Artist AlbumArtist + MBID string + Name string + URL string + type Error struct + Err int + Message string + func (e Error) Error() string + type FullAlbum struct + Artist string + Image []Image + Listeners string + MBID string + Name string + Playcount string + Tags Tags + Tracks AlbumTracks + URL string + Wiki Wiki + type FullArtist struct + Bio Bio + Image []Image + MBID string + Name string + OnTour string + Similar Artists + Stats ArtistStats + Streamable string + Tags Tags + URL string + type GeoAttr struct + Country string + Page string + PerPage string + Total string + TotalPages string + type GeoTopArtists struct + Artist []Artist + Attr GeoAttr + type GeoTopTracks struct + Attr GeoAttr + Track []GeoTrack + type GeoTrack struct + Artist AlbumArtist + Attr TrackRank + Duration string + Image []Image + Listeners string + MBID string + Name string + Streamable StreamableTrack + URL string + type Image struct + Size string + URL string + type LibraryArtist struct + Image []Image + MBID string + Name string + Playcount string + Streamable string + TagCount string + URL string + type LibraryArtists struct + Artists []LibraryArtist + Attr UserAttr + type Link struct + Href string + Rel string + Text string + type Links struct + Link Link + type LovedTrack struct + Artist AlbumArtist + Date TrackDate + Image []Image + MBID string + Name string + Streamable StreamableTrack + URL string + type OpenSearchQuery struct + Role string + SearchTerms string + StartPage string + Text string + type PathOptions struct + type PersonalTagAttr struct + Page string + PerPage string + Tag string + Total string + TotalPages string + User string + type PersonalTrack struct + Artist AlbumArtist + Duration string + Image []Image + MBID string + Name string + Streamable StreamableTrack + URL string + type PosAttr struct + Position string + type Rank struct + Rank string + type RecentDate struct + Text string + UTS string + type RequestOption func(*requestOptions) + func AlbumOpt(album string) RequestOption + func ArtistOpt(artist string) RequestOption + func AutocorrectOpt(autocorrect Binary) RequestOption + func CountryOpt(code string) RequestOption + func ExtendedOpt(extend Binary) RequestOption + func FromOpt(from int) RequestOption + func LangOpt(lang string) RequestOption + func LimitOpt(amount int) RequestOption + func LocationOpt(local string) RequestOption + func MbidOpt(id string) RequestOption + func PageOpt(page int) RequestOption + func PeriodOpt(period TimePeriod) RequestOption + func TagOpt(tag string) RequestOption + func TaggingTypeOpt(tag Tagging) RequestOption + func ToOpt(to int) RequestOption + func TrackOpt(track string) RequestOption + func UsernameOpt(user string) RequestOption + type SearchAttr struct + For string + type SimilarArtists struct + Attr ArtistTagAttr + SimilarArtists []Artist + type SimilarTrack struct + Artist AlbumArtist + Duration int + Image []Image + MBID string + Match float32 + Name string + Playcount int + Streamable StreamableTrack + URL string + type SimilarTracks struct + Attr SimpleArtistAttr + Tracks []SimilarTrack + type SimpleAlbum struct + Artist string + Image []Image + MBID string + Name string + Streamable string + URL string + type SimpleArtistAttr struct + Artist string + type StreamableTrack struct + FullTrack string + Text string + type Tag struct + Name string + URL string + type TagAlbum struct + Artist AlbumArtist + Attr Rank + Image []Image + MBID string + Name string + URL string + type TagArtist struct + Attr Rank + Image []Image + MBID string + Name string + Streamable string + URL string + type TagAttr struct + Page string + PerPage string + Tag string + Total string + TotalPages string + type TagChartAttr struct + Tag string + type TagChartlist struct + From string + Text string + To string + type TagInfo struct + Name string + Reach int + Total int + Wiki Wiki + type TagTopAlbums struct + Albums []TagAlbum + Attr TagAttr + type TagTopArtists struct + Artists []TagArtist + Attr TagAttr + type TagTopTags struct + Attr TopTagAttr + Tag []TopTag + type TagTopTracks struct + Attr TagAttr + Tracks []TagTrack + type TagTrack struct + Artist AlbumArtist + Attr Rank + Duration string + Image []Image + MBID string + Name string + Streamable StreamableTrack + URL string + type TagWeeklyChartlist struct + Attr TagChartAttr + Charts []TagChartlist + type TagWithCount struct + Count int + Name string + URL string + type TagWithStrCount struct + Count string + Name string + URL string + type Tagging string + const AlbumTag + const ArtistTag + const TrackTag + type Tags struct + Tag []Tag + type TagsWithCount struct + Attr ArtistTagAttr + Tag []TagWithCount + type TimePeriod string + const OneMonth + const Overall + const SixMonth + const ThreeMonth + const Week + const Year + type TopArtists struct + Artist []ChartArtist + Attr ChartAttr + type TopTag struct + Count int + Name string + Reach int + type TopTagAttr struct + NumRes int + Offset int + Total int + type TopTags struct + Attr ChartAttr + Tag []ChartTag + type Track struct + Artist AlbumArtist + Attr TrackRank + Image []Image + Listeners string + MBID string + Name string + Playcount string + Streamable string + URL string + type TrackAlbum struct + Artist AlbumArtist + Attr TrackRankInt + Duration int + Name string + Streamable StreamableTrack + URL string + type TrackCorrection struct + Attr CorrectedAttr + Track CorrectedTrack + type TrackDate struct + Text string + UTS string + type TrackInfo struct + Album TrackInfoAlbum + Artist AlbumArtist + Duration string + Listeners string + MBID string + Name string + Playcount string + Streamable StreamableTrack + TopTags Tags + URL string + Wiki Wiki + type TrackInfoAlbum struct + Artist string + Attr PosAttr + Image []Image + MBID string + Title string + URL string + type TrackMatch struct + Artist string + Image []Image + Listeners string + MBID string + Name string + Streamable string + URL string + type TrackMatches struct + Tracks []TrackMatch + type TrackPersonalTag struct + Tracks []PersonalTrack + type TrackPersonalTags struct + Attr PersonalTagAttr + TrackTags TrackPersonalTag + type TrackRank struct + Rank string + type TrackRankInt struct + Rank int + type TrackRanked struct + Artist AlbumArtist + Attr TrackRank + Duration string + Image []Image + MBID string + Name string + Playcount string + Streamable StreamableTrack + URL string + type TrackRecent struct + Album AlbumRecent + Artist ArtistRecent + Date RecentDate + Image []Image + Loved string + MBID string + Name string + Streamable string + URL string + type TrackSearchRes struct + Attr SearchAttr + Query OpenSearchQuery + QueryItemsPerPage string + QueryStartIndex string + QueryTotalResults string + TrackMatches TrackMatches + type TrackTags struct + Attr ArtistTrackAttr + Tags []Tag + Text string + type TrackTopTags struct + Attr ArtistTrackAttr + Tags []TagWithCount + type Tracks struct + Attr ArtistAttr + Track []Track + type User struct + Age string + Bootstrap string + Country string + Gender string + Image []Image + Name string + Playcount string + Playlists string + Realname string + Registered UserRegistered + Subscriber string + Type string + URL string + type UserAttr struct + Page string + PerPage string + Total string + TotalPages string + User string + type UserAttrSimple struct + User string + type UserFriend struct + Age string + Bootstrap string + Country string + Gender string + Image []Image + Name string + Playcount string + Playlists string + Realname string + Registered UserRegisteredStr + Subscriber string + Type string + URL string + type UserFriends struct + Attr UserAttr + Users []UserFriend + type UserLovedTracks struct + Attr UserAttr + Tracks []LovedTrack + type UserRecentTracks struct + Attr UserAttr + Tracks []TrackRecent + type UserRegistered struct + Text int + Unixtime string + type UserRegisteredStr struct + Unixtime string + type UserTopAlbums struct + Albums []AlbumRanked + Attr UserAttr + type UserTopArtists struct + Artists []ArtistRanked + Attr UserAttr + type UserTopTags struct + Attr UserAttrSimple + Tags []TagWithStrCount + type UserTopTracks struct + Attr UserAttr + Tracks []TrackRanked + type UserWeeklyAlbumChart struct + Albums []WeeklyAlbumChart + Attr WeeklyAttr + type UserWeeklyArtistChart struct + Artists []WeeklyArtistChart + Attr WeeklyAttr + type UserWeeklyChartList struct + Attr UserAttrSimple + Charts []ChartDates + type UserWeeklyTrackChart struct + Attr WeeklyAttr + Tracks []WeeklyTrackChart + type WeeklyAlbumChart struct + Artist AlbumRecent + Attr Rank + MBID string + Name string + Playcount string + URL string + type WeeklyArtistChart struct + Attr Rank + MBID string + Name string + Playcount string + URL string + type WeeklyAttr struct + From string + To string + User string + type WeeklyTrackChart struct + Artist AlbumRecent + Attr TrackRank + Image []Image + MBID string + Name string + Playcount string + URL string + type Wiki struct + Content string + Published string + Summary string