Documentation ¶
Overview ¶
Package store is responsible for conversion and storage of tracks and thumbnails.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConvertedFileOrError ¶
type ConvertedFileOrError struct { ConvertedFile music.ConvertedFile Err error }
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewThumbnailStore ¶
func (*Store) GetConvertedFile ¶
type ThumbnailConverter ¶
type ThumbnailConverter struct {
// contains filtered or unexported fields
}
func NewThumbnailConverter ¶
func NewThumbnailConverter(dataDir string) *ThumbnailConverter
func (*ThumbnailConverter) Convert ¶
func (c *ThumbnailConverter) Convert(item Item) error
func (*ThumbnailConverter) OutputDirectory ¶
func (c *ThumbnailConverter) OutputDirectory() string
func (*ThumbnailConverter) OutputFile ¶
func (c *ThumbnailConverter) OutputFile(id string) string
func (*ThumbnailConverter) TemporaryOutputFile ¶
func (c *ThumbnailConverter) TemporaryOutputFile(id string) string
type TrackConverter ¶
type TrackConverter struct {
// contains filtered or unexported fields
}
func NewTrackConverter ¶
func NewTrackConverter(dataDir string) *TrackConverter
func (*TrackConverter) Convert ¶
func (c *TrackConverter) Convert(item Item) error
func (*TrackConverter) OutputDirectory ¶
func (c *TrackConverter) OutputDirectory() string
func (*TrackConverter) OutputFile ¶
func (c *TrackConverter) OutputFile(id string) string
func (*TrackConverter) TemporaryOutputFile ¶
func (c *TrackConverter) TemporaryOutputFile(id string) string
type TrackStore ¶
type TrackStore struct { *Store // contains filtered or unexported fields }
func NewTrackStore ¶
func NewTrackStore(ctx context.Context, dataDir string) (*TrackStore, error)
func (*TrackStore) GetDuration ¶
func (s *TrackStore) GetDuration(id string) time.Duration
func (*TrackStore) SetItems ¶
func (s *TrackStore) SetItems(items []Item)
Click to show internal directories.
Click to hide internal directories.