Documentation ¶
Index ¶
- Constants
- Variables
- func Connect(dataFolder string)
- func LogStartup(version string) (previousVersion string, err error)
- func PlayTrack(track *Track) error
- type Album
- type Artist
- type NeptuneVersion
- type Tag
- type Track
- func ListAllTracks() ([]*Track, error)
- func ListTracks(page int) ([]*Track, error)
- func ListTracksBy(artist *Artist) ([]*Track, error)
- func ListTracksIn(album *Album) ([]*Track, error)
- func ListTracksWith(tag *Tag) ([]*Track, error)
- func PlayEntry(result *youtube.YoutubeEntry) (*Track, error)
- func StoreTrack(videoInfo *youtube.VideoInfo, trackInfo *providers.TrackInfo) (*Track, error)
- func TrackFrom(result *youtube.YoutubeEntry) (*Track, error)
- type TrackTag
Constants ¶
View Source
const (
PAGE_SIZE = 50
)
Variables ¶
View Source
var DataFolder string
View Source
var Database *gorm.DB
Functions ¶
func LogStartup ¶
Types ¶
type Album ¶
type Album struct { gorm.Model MBID string `gorm:"unique"` Title string ArtistID uint Artist Artist }
func ListAlbums ¶
func ListAlbumsBy ¶
func (*Album) GetAlbumArtPath ¶
type Artist ¶
func ListArtists ¶
type NeptuneVersion ¶
type Track ¶
type Track struct { gorm.Model MBID string YoutubeID string `gorm:"unique"` AlbumID uint Album Album Title string Length int PlayCount int YoutubeTitle string Tags []TrackTag }
func ListAllTracks ¶
func ListTracks ¶
func ListTracksBy ¶
func ListTracksIn ¶
func ListTracksWith ¶
func StoreTrack ¶
Click to show internal directories.
Click to hide internal directories.