Documentation ¶
Overview ¶
Package objects provides the major data types representing the objects the application deals with - folders, programs, and files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { ID int64 ProgramID int64 FolderID int64 Path string Title string URL string Ord []int64 Position int64 LastPlayed time.Time }
File represents an audio file
func (*File) DisplayTitle ¶
DisplayTitle returns a - somewhat - presentable string to represent the file.
func (*File) GetParentFolder ¶
GetParentFolder returns the name of the Folder the file lives in, i.e. basename(dirname(path))
type Folder ¶
Folder represents the root of a directory tree where audio files are stored.
func (*Folder) Clone ¶
Clone return a pointer to a freshly-allocated memberwise copy of the receiver.
func (*Folder) SinceLastScan ¶
SinceLastScan returns the amount of time that has passed since the Folder was last scanned.
Click to show internal directories.
Click to hide internal directories.