search

package
v0.0.0-...-fd00b2c Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NeedsWrap

func NeedsWrap(cfg config.Config) bool

func Open

Open returns a radio.SearchService as configured by the config given

func Register

func Register(name string, needsWrap bool, fn OpenFn)

Register registers an OpenFn under the name given, it is not safe to call Register from multiple goroutines

Register will panic if the name already exists

func WrapStorageService

func WrapStorageService(search radio.SearchService, storage radio.StorageService) radio.StorageService

WrapStorageService wraps around a StorageService and intercepts calls to methods that mutate tracks in the TrackStorage interface. When such a mutation happens a background task is launched to update the SearchService given

Types

type OpenFn

OpenFn is a function that returns a SearchService configured with the config given

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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