Documentation ¶
Index ¶
- type Finder
- func (f *Finder) GetSearcher(service string) Searcher
- func (f *Finder) GetTrackSource(ctx context.Context, trackID uint64) (edb.TrackSource, error)
- func (f *Finder) Search(ctx context.Context, track edb.Track) ([]Result, error)
- func (f *Finder) SearchOne(ctx context.Context, track edb.Track) (Result, error)
- type Result
- type Searcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finder ¶
type Finder struct {
// contains filtered or unexported fields
}
func (*Finder) GetSearcher ¶
func (*Finder) GetTrackSource ¶
type Result ¶
type Result struct {
TrackSource edb.TrackSource
}
type Searcher ¶
type Searcher interface { service.Identifier // Search searches for audio sources for the given track. // The track needs to have all associations pre-loaded. // The results must only include valid results and must be ordered from // best to worst. Search(ctx context.Context, track edb.Track) ([]Result, error) // Generate the qualified uri for the track source. GenerateTrackURI(source edb.TrackSource) string }
Click to show internal directories.
Click to hide internal directories.