Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowseOptions ¶
type BrowseOptions struct { TextFilter string BrowseType BrowseType }
type BrowseType ¶
type BrowseType string
const ( BrowseTypeFile BrowseType = "file" BrowseTypeAlbumArtist BrowseType = "albumartist" BrowseTypeGenre BrowseType = "genre" BrowseTypeYear BrowseType = "year" BrowseTypeModified BrowseType = "modified" )
type IndexedLibrary ¶
type IndexedLibrary struct { RootPaths []string AlbumArtists *MetadataIndex Files *FileIndex Genres *MetadataIndex Years *MetadataIndex ModifyDates *MetadataIndex }
func NewIndexedLibrary ¶
func NewIndexedLibrary(ctx context.Context, rootPaths []string) (*IndexedLibrary, error)
func (*IndexedLibrary) Browse ¶
func (l *IndexedLibrary) Browse(ctx context.Context, browseURI string, opts BrowseOptions) ([]*BrowseItem, error)
func (*IndexedLibrary) Media ¶
func (l *IndexedLibrary) Media(ctx context.Context, uri string, opts BrowseOptions) ([]string, error)
type MediaMetadata ¶
type MetadataIndex ¶
type MetadataIndex struct {
// contains filtered or unexported fields
}
func NewArtistAlbumIndex ¶
func NewArtistAlbumIndex() *MetadataIndex
func NewGenreIndex ¶
func NewGenreIndex() *MetadataIndex
func NewMetadataIndex ¶
func NewMetadataIndex(builders []NodeBuilder) *MetadataIndex
func NewModifiedAtIndex ¶
func NewModifiedAtIndex() *MetadataIndex
func NewYearIndex ¶
func NewYearIndex() *MetadataIndex
func (*MetadataIndex) Index ¶
func (a *MetadataIndex) Index(ctx context.Context, files *Files) error
type Node ¶
type Node struct { Name string LowerName string URI string ImageURI string Parent *Node Children []*Node }
func (*Node) AddChildren ¶
type NodeBuilder ¶
type PathMeta ¶
type ReloadableLibrary ¶
type ReloadableLibrary struct {
// contains filtered or unexported fields
}
func NewReloadableLibrary ¶
func NewReloadableLibrary(rootPaths []string) *ReloadableLibrary
func (*ReloadableLibrary) Browse ¶
func (r *ReloadableLibrary) Browse(ctx context.Context, browseURI string, opts BrowseOptions) ([]*BrowseItem, error)
func (*ReloadableLibrary) Media ¶
func (r *ReloadableLibrary) Media(ctx context.Context, uri string, opts BrowseOptions) ([]string, error)
type WalkNodeFunc ¶
Click to show internal directories.
Click to hide internal directories.