Documentation ¶
Index ¶
- Variables
- func GetArtistsAndAlbums(d *BoltDB) (sort.StringSlice, map[string]bool, map[string][]string)
- func GetPlaylists(d *BoltDB) sort.StringSlice
- func GetTracks(d *BoltDB, what []string, view int, curPos, scrOffset map[bool]int, ...) map[string][]string
- func ReadCredentials(db *bolt.DB) ([]byte, []byte, error)
- func ReadLastFM(db *bolt.DB) (string, error)
- func WriteCredentials(db *bolt.DB, auth string, deviceID string) error
- func WriteLastFM(lastfm []byte, db *bolt.DB) error
- type BoltDB
- func (d *BoltDB) AddPlaylists(provider jamsonic.Provider, playlists []*jamsonic.Playlist, ...) error
- func (d *BoltDB) AddTracks(tracks []*jamsonic.Track) error
- func (d *BoltDB) Artists() ([]*jamsonic.Artist, error)
- func (d *BoltDB) GetCredentials(key []byte) ([]byte, error)
- func (d *BoltDB) SaveArtists(artists []*jamsonic.Artist) error
- func (d *BoltDB) SaveCredentials(key []byte, credStruct []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoGPMCredentials = errors.New("No #AuthDetails bucket") ErrNoLastFMBucket = errors.New("No #LastFM bucket") ErrNoLastFMRecord = errors.New("No LastFM record in the database") )
View Source
var ( ErrNoLibraryFound = errors.New("no library found") ErrLibraryNotFound = errors.New("library not found") )
Functions ¶
func GetArtistsAndAlbums ¶ added in v0.7.0
GetArtistsAndAlbums returns the artists and albums. This code was moved from the UI package. This code is depricated.
func GetPlaylists ¶ added in v0.7.0
func GetPlaylists(d *BoltDB) sort.StringSlice
GetPlaylists returns the playlists. This code was moved from the UI package. This code is depricated.
Types ¶
type BoltDB ¶ added in v0.7.0
func (*BoltDB) AddPlaylists ¶ added in v0.7.0
func (d *BoltDB) AddPlaylists(provider jamsonic.Provider, playlists []*jamsonic.Playlist, entries []*jamsonic.PlaylistEntry) error
AddPlaylists stores the playlists in the database.
func (*BoltDB) GetCredentials ¶ added in v0.7.0
func (*BoltDB) SaveArtists ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.