Documentation
¶
Overview ¶
Package library is responsible for orchestrating actions related to providing a navigable representation of the audio library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortTracks ¶
Types ¶
type DelimiterAccessLoader ¶
type DelimiterAccessLoader struct{}
func NewDelimiterAccessLoader ¶
func NewDelimiterAccessLoader() *DelimiterAccessLoader
type IdGenerator ¶
type IdGenerator interface { AlbumId(parents []music.AlbumId, title string) (music.AlbumId, error) TrackId(parents []music.AlbumId, title string) (music.TrackId, error) FileId(path string) (music.FileId, error) }
func NewIdGenerator ¶
func NewIdGenerator() IdGenerator
type Library ¶
type Library struct {
// contains filtered or unexported fields
}
Library receives scanner updates, dispatches them to appropriate stores and builds a navigable representation of the music collection.
func New ¶
func New( ch <-chan scanner.Album, trackStore TrackStore, thumbnailStore ThumbnailStore, accessLoader AccessLoader, idGenerator IdGenerator, ) (*Library, error)
New creates a library which receives updates from the specified channel.
type ThumbnailStore ¶
Click to show internal directories.
Click to hide internal directories.