Documentation ¶
Index ¶
- type Artist
- func (a *Artist) AddTags(artist string, tags []string) (err error)
- func (a *Artist) GetCorrection(artist string) (ac *artistCorrection, err error)
- func (a *Artist) GetInfo(artist, mbid, lang string) (ai *artistInfo, err error)
- func (a *Artist) GetSimilar(artist, mbid string) (as *artistSimilar, err error)
- func (a *Artist) GetTags(artist, mbid string) (at *artistTags, err error)
- func (a *Artist) GetTopAlbums(artist, mbid string, page int) (ata *artistTopAlbums, err error)
- func (a *Artist) GetTopTags(artist, mbid string) (att *artistTopTags, err error)
- func (a *Artist) GetTopTracks(artist, mbid string, page int) (att *artistTopTracks, err error)
- func (a *Artist) RemoveTag(artist, tag string) (err error)
- func (a *Artist) Search(artist string, page int) (as *artistSearch, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artist ¶
type Artist struct { Username string // contains filtered or unexported fields }
Artist represents a structure to help query the `artist` LastFM API functions.
func New ¶
New returns an instance of the `album` API endpoint functions for LastFM.
func (*Artist) AddTags ¶
AddTags adds tags to an artist on LastFM using a list of user supplied tags
func (*Artist) GetCorrection ¶
GetCorrection fetches canonical artist details from LastFM for the provided artist
func (*Artist) GetInfo ¶
GetInfo fetches artist metadata from LastFM using artist name or MBID (MusicBrainz ID)
language needs to be an ISO 639, alpha-2 encoded string (default: en)
func (*Artist) GetSimilar ¶
GetSimilar fetches similar artists from LastFM for the provided artist or MBID (MusicBrainz ID)
func (*Artist) GetTags ¶
GetTags fetches user-applied tags on an artist from LastFM for the provided artist name or MBID (MusicBrainz ID)
func (*Artist) GetTopAlbums ¶
GetTopAlbums fetches top albums for the provided artist from LastFM, based on artist name or MBID (MusicBrainz ID)
func (*Artist) GetTopTags ¶
GetTopTags fetches top tags for the provided artist from LastFM, ordered by tag count, based on artist name or MBID (MusicBrainz ID)
func (*Artist) GetTopTracks ¶
GetTopTracks fetches top tracks for the provided artist from LastFM, based on artist name or MBID (MusicBrainz ID)
func (*Artist) RemoveTag ¶
RemoveTag removes the provided user-applied tag from an artist on LastFM