Documentation ¶
Index ¶
- type Db
- func (d *Db) AddMusic(music *Music) error
- func (d *Db) AddMusicToPlaylist(musicName, playlistName string) error
- func (d *Db) AddPlaylist(plname string) error
- func (d *Db) CleanCache() error
- func (d *Db) Close() error
- func (d *Db) FilterMusic(query string) ([]Music, error)
- func (d *Db) GetCachedMusics() ([]Music, error)
- func (d *Db) GetMusic(source string, key string) (Music, error)
- func (d *Db) GetMusicByHash(hash string) (Music, error)
- func (d *Db) GetMusicByHashPrefix(hash_p string) (Music, error)
- func (d *Db) GetMusicByKeySource(source string, key string) (Music, error)
- func (d *Db) GetMusicByName(name string) (Music, error)
- func (d *Db) GetMusicsFromPlaylist(playlistName string) ([]Music, error)
- func (d *Db) GetPlaylist(name string) (Playlist, error)
- func (d *Db) GetPlaylists() ([]Playlist, error)
- func (d *Db) InitMusic() error
- func (d *Db) InitMusicPlaylist() error
- func (d *Db) InitPlaylist() error
- func (d *Db) RemoveMusicFromPlaylist(playlistName string, musicName string) error
- func (d *Db) RemovePlaylist(name string) error
- func (d *Db) UpdateMusic(name string, source string, key string, data []byte) error
- type Music
- type Playlist
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶
type Db struct {
// contains filtered or unexported fields
}
func (*Db) AddMusicToPlaylist ¶
func (*Db) AddPlaylist ¶
func (*Db) CleanCache ¶ added in v0.0.30
func (*Db) GetCachedMusics ¶ added in v0.0.30
func (*Db) GetMusicByHashPrefix ¶ added in v0.0.30
func (*Db) GetMusicByKeySource ¶
func (*Db) GetMusicsFromPlaylist ¶
func (*Db) GetPlaylists ¶
func (*Db) InitPlaylist ¶
func (*Db) RemoveMusicFromPlaylist ¶
func (*Db) RemovePlaylist ¶
Click to show internal directories.
Click to hide internal directories.