Documentation ¶
Index ¶
- type Artist
- type DB
- func (db *DB) AddArtist(name string) bool
- func (db *DB) AddTrack(artist, album, title string, date time.Time) bool
- func (db *DB) FindLastListen() (int64, error)
- func (db *DB) NewRec(table, field, data string) bool
- func (db *DB) RecentTracks() (s string, err error)
- func (db *DB) Scrobbles() (s string)
- func (db *DB) TopAlbums() (s string, err error)
- func (db *DB) TopArtists() (s string, err error)
- func (db *DB) TopSongs() (s string, err error)
- type Datastore
- type Track
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB struct
func (*DB) FindLastListen ¶
func (*DB) RecentTracks ¶
RecentTracks returns a string of recently played tracks.
func (*DB) Scrobbles ¶
Scrobbles returns a string with your userrname, number of scrobbles, artists, and your first play date.
func (*DB) TopArtists ¶
TopArtists returns a string of your top played artists
type Datastore ¶
type Datastore interface { AddArtist(name string) bool AddTrack(artist, album, title string, date time.Time) bool FindLastListen() (int64, error) RecentTracks() (string, error) Scrobbles() string TopArtists() (string, error) TopAlbums() (string, error) TopSongs() (string, error) }
Datastore interface
Click to show internal directories.
Click to hide internal directories.