lastfm

package
v0.23.5 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 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 {
	// contains filtered or unexported fields
}

func (TopTrack) Rank

func (t TopTrack) Rank() int

func (TopTrack) Track

func (t TopTrack) Track() string

Jump to

Keyboard shortcuts

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