sources

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachableBio

type CachableBio struct {
	Bio string // Artist biography
}

type CacheableSimilarArtists

type CacheableSimilarArtists struct {
	SimilarArtist []string // Artists that are similar
}

type CacheableSimilarTracks

type CacheableSimilarTracks struct {
	SimilarTracks []string
}

type CacheableTopTracks

type CacheableTopTracks struct {
	Tracks []string // Artist (top) tracks
}

type Source

type Source interface {
	GetSimilarTracks(artist, track string) (*CacheableSimilarTracks, error)
	GetArtistBio(artist string) (*CachableBio, error)
	GetArtistTopTracks(artist string) (*CacheableTopTracks, error)
	GetSimilarArtists(artist string) (*CacheableSimilarArtists, error)
}

Source defines the contract required to implement another 3rd party source for look-up data.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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