helpers

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllTermsMatch

func AllTermsMatch(name string, terms []string) bool

name and terms should be pre-converted to the same case

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)

Jump to

Keyboard shortcuts

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