Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { Path string Cover string Album string `json:"album"` Artist string `json:"artist"` Year int `json:"year"` Genre string `json:"genre"` Tracks []*Track // contains filtered or unexported fields }
func (*Album) SavePicture ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func LoadCollection ¶
func LoadCollection(path string) (*Collection, error)
func Scan ¶
func Scan(dir string) *Collection
func (*Collection) Albums ¶
func (collection *Collection) Albums() []string
func (*Collection) GetAlbum ¶
func (collection *Collection) GetAlbum(key string) *Album
func (*Collection) Save ¶
func (collection *Collection) Save(path string) error
type InfosAlbum ¶
type InfosAlbum struct { Path string Cover string Tracks []*InfosTrack }
type InfosTrack ¶
type MetaCollection ¶
type MetaCollection struct { Metadata map[string]*MetaAlbum `json:"metadata"` Infos map[string]*InfosAlbum `json:"infos"` }
Click to show internal directories.
Click to hide internal directories.