lastfm

package
v0.0.0-...-bcea5fb Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LastFM

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

LastFM config container for a LastFM source.

func New

func New(config *config.Config) (*LastFM, error)

New returns a LASTFM API client

func (*LastFM) GetArtistBio

func (c *LastFM) GetArtistBio(artist string) (*sources.CachableBio, error)

GetArtistBio retrieves artist biography information from the LAST.fm API.

func (*LastFM) GetArtistTopTracks

func (c *LastFM) GetArtistTopTracks(artist string) (*sources.CacheableTopTracks, error)

GetArtistTopTracks fetches top N songs for the requested artist.

func (*LastFM) GetSimilarArtists

func (c *LastFM) GetSimilarArtists(artist string) (*sources.CacheableSimilarArtists, error)

GetSimilarArtists retrieves the top N similar artists based on seeded/user supplied artist

func (*LastFM) GetSimilarTracks

func (c *LastFM) GetSimilarTracks(artist, track string) (*sources.CacheableSimilarTracks, error)

GetSimilarTracks retrieves similiar songs based on a seed artist + track name

Jump to

Keyboard shortcuts

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