tag

package
v0.0.0-...-5fee3ad Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tag

type Tag struct {
	// contains filtered or unexported fields
}

Tag represents a structure to help query the `tag` LastFM API functions.

func New

func New(client *lastfm.Client) (tag *Tag)

New returns an instance of the `tag` API endpoint functions for LastFM.

func (*Tag) GetInfo

func (t *Tag) GetInfo(tag, lang string) (ti *tagInfo, err error)

GetInfo fetches metadata for the provided tag from LastFM.

func (*Tag) GetSimilar

func (t *Tag) GetSimilar(tag string) (ts *tagSimilar, err error)

GetSimilar searches for similar tags from LastFM, ranked by similarity and based on listening data.

func (*Tag) GetTopAlbums

func (t *Tag) GetTopAlbums(tag string, page int) (tta *tagTopAlbums, err error)

GetTopAlbums fetches top albums from LastFM tagged by the provided tag, ordered by tag count.

func (*Tag) GetTopArtists

func (t *Tag) GetTopArtists(tag string, page int) (tta *tagTopArtists, err error)

GetTopArtists fetches top artists from LastFM tagged by the provided tag, ordered by tag count.

func (*Tag) GetTopTags

func (t *Tag) GetTopTags() (tt *tagTopTags, err error)

GetTopTags fetches top tags from LastFM based on popularity.

func (*Tag) GetTopTracks

func (t *Tag) GetTopTracks(tag string, page int) (ttt *tagTopTracks, err error)

GetTopTracks fetches top tracks from LastFM tagged by the provided tag, ordered by tag count.

func (*Tag) GetWeeklyChartList

func (t *Tag) GetWeeklyChartList(tag string) (twc *tagWeeklyChartList, err error)

GetWeeklyChartList fetches a list of available charts from LastFM for the provided tag, expressed as date ranges in unixtime.

Jump to

Keyboard shortcuts

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