lastfm

package
v0.11.9 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Key    string
	Secret string
}

type Lastfm

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

func NewLastfm

func NewLastfm(config Config, client client.Getter) *Lastfm

func (*Lastfm) ArtistSearch

func (m *Lastfm) ArtistSearch(name string) (string, string)

func (*Lastfm) ArtistTopTracks

func (m *Lastfm) ArtistTopTracks(arid string) []TopTrack

func (*Lastfm) SimilarArtists

func (m *Lastfm) SimilarArtists(arid string) map[string]float64

type TopTrack

type TopTrack struct {
	Track string
	Rank  int
}

Jump to

Keyboard shortcuts

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