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.
Click to show internal directories.
Click to hide internal directories.