Documentation
¶
Index ¶
- func AllTermsMatch(name string, terms []string) bool
- func GetArtistTracks(mp mediaprovider.MediaProvider, artistID string) ([]*mediaprovider.Track, error)
- func GetSimilarSongsFallback(mp mediaprovider.MediaProvider, track *mediaprovider.Track, count int) []*mediaprovider.Track
- func GetTopTracksFallback(mp mediaprovider.MediaProvider, artistID string, count int) ([]*mediaprovider.Track, error)
- func NewAlbumIterator(fetchFn AlbumFetchFn, filter mediaprovider.AlbumFilter, cb func(string)) mediaprovider.AlbumIterator
- func NewArtistIterator(fetchFn ArtistFetchFn, filter mediaprovider.ArtistFilter, cb func(string)) mediaprovider.ArtistIterator
- func NewRandomAlbumIter(deterministicFetcher, randomFetcher AlbumFetchFn, ...) *randomAlbumIter
- func NewTrackIterator(fetchFn TrackFetchFn, cb func(string)) mediaprovider.TrackIterator
- func RankSearchResults(results []*mediaprovider.SearchResult, fullQuery string, queryTerms []string)
- type AlbumFetchFn
- type ArtistFetchFn
- type TrackFetchFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllTermsMatch ¶
name and terms should be pre-converted to the same case
func GetArtistTracks ¶ added in v0.12.0
func GetArtistTracks(mp mediaprovider.MediaProvider, artistID string) ([]*mediaprovider.Track, error)
func GetSimilarSongsFallback ¶ added in v0.12.0
func GetSimilarSongsFallback(mp mediaprovider.MediaProvider, track *mediaprovider.Track, count int) []*mediaprovider.Track
func GetTopTracksFallback ¶ added in v0.12.0
func GetTopTracksFallback(mp mediaprovider.MediaProvider, artistID string, count int) ([]*mediaprovider.Track, error)
func NewAlbumIterator ¶
func NewAlbumIterator(fetchFn AlbumFetchFn, filter mediaprovider.AlbumFilter, cb func(string)) mediaprovider.AlbumIterator
func NewArtistIterator ¶ added in v0.10.0
func NewArtistIterator(fetchFn ArtistFetchFn, filter mediaprovider.ArtistFilter, cb func(string)) mediaprovider.ArtistIterator
func NewRandomAlbumIter ¶
func NewRandomAlbumIter(deterministicFetcher, randomFetcher AlbumFetchFn, filter mediaprovider.AlbumFilter, prefetchCoverCB func(string)) *randomAlbumIter
func NewTrackIterator ¶
func NewTrackIterator(fetchFn TrackFetchFn, cb func(string)) mediaprovider.TrackIterator
func RankSearchResults ¶
func RankSearchResults(results []*mediaprovider.SearchResult, fullQuery string, queryTerms []string)
Types ¶
type AlbumFetchFn ¶
type AlbumFetchFn func(offset, limit int) ([]*mediaprovider.Album, error)
type ArtistFetchFn ¶ added in v0.10.0
type ArtistFetchFn func(offset, limit int) ([]*mediaprovider.Artist, error)
type TrackFetchFn ¶
type TrackFetchFn func(offset, limit int) ([]*mediaprovider.Track, error)
Click to show internal directories.
Click to hide internal directories.