Documentation
¶
Overview ¶
Package data provides abstraction for interacting with the data store of choice. In the case of audiofile, this will be with the local sqlite db.
Index ¶
- type Data
- func (d *Data) CaptureFile() error
- func (d *Data) DeleteDirectory(dir audiofile.Directory) error
- func (d *Data) GetAlbums() []audiofile.Album
- func (d *Data) GetArtists() []audiofile.Artist
- func (d *Data) GetDirectories() ([]audiofile.Directory, error)
- func (d *Data) StoreDirectory(dir audiofile.Directory) (audiofile.Directory, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { Errors []error // contains filtered or unexported fields }
Data provides a struct to house the database connection so methods can be attached to work with data.
func (*Data) CaptureFile ¶
CaptureFile will take a full found file and capture the data points within the database.
func (*Data) DeleteDirectory ¶
DeleteDirectory will accept an existing directory reference and remove it from the database.
func (*Data) GetArtists ¶
GetArtists will retrieve a slice of Artist entries.
func (*Data) GetDirectories ¶
GetDirectories will provide a list of all known directories.
Click to show internal directories.
Click to hide internal directories.