lastfm

package
v0.0.0-...-ce70d39 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedResponseCode = errors.New("unexpected response code")
	ErrUnexpectedResponseBody = errors.New("unexpected response body")
	ErrUnauthenticated        = errors.New("unauthenticated")
	ErrNotFound               = errors.New("not found")
)

Functions

This section is empty.

Types

type ArtistInfo

type ArtistInfo struct {
	Name string `json:"name"`
	MBID string `json:"mbid"`
	URL  string `json:"url"`
	Bio  *struct {
		Published string `json:"published"`
		Content   string `json:"content"`
	} `json:"bio"`
}

type LastFm

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

func New

func New(apiKey string, store db.Store) *LastFm

func (*LastFm) GetArtistInfo

func (l *LastFm) GetArtistInfo(ctx context.Context, name string, mbid *string) (ArtistInfo, error)

Jump to

Keyboard shortcuts

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