artistinfocache

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtistInfoCache

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

func New

func New(db *db.DB, lastfmClient *lastfm.Client) *ArtistInfoCache

func (*ArtistInfoCache) Get

func (a *ArtistInfoCache) Get(ctx context.Context, artistID int) (*db.ArtistInfo, error)

func (*ArtistInfoCache) GetOrLookup

func (a *ArtistInfoCache) GetOrLookup(ctx context.Context, artistID int) (*db.ArtistInfo, error)

func (*ArtistInfoCache) Lookup

func (a *ArtistInfoCache) Lookup(ctx context.Context, artist *db.Artist) (*db.ArtistInfo, error)

func (*ArtistInfoCache) Refresh

func (a *ArtistInfoCache) Refresh() error

Jump to

Keyboard shortcuts

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