engine

package
v0.0.0-...-fddd541 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadError

type DownloadError struct {
	Cause error
}

func (*DownloadError) Error

func (e *DownloadError) Error() string

type DownloadResult

type DownloadResult struct {
	Downloaded bool
	Album      uint
	Single     uint
}

func DownloadTrackError

func DownloadTrackError() *DownloadResult

type Engine

type Engine struct {
	DataRepository *repository.Repository
}

func (*Engine) PlaylistDownloader

func (e *Engine) PlaylistDownloader() *PlaylistDownloader

Download playlist from music service

type MasterData

type MasterData struct {
	Engine          *Engine
	Logger          *zap.SugaredLogger
	MusicRepository musicservices.IMasterDataRepository
}

find album and artist IDs using album and artist names

type PlaylistDownloader

type PlaylistDownloader struct {
	Engine         *Engine
	DataRepository *repository.Repository
	Logger         *zap.SugaredLogger

	CurrentPlaylist    *core.Playlist
	MusicService       musicservices.IMusicService
	MusicRepository    musicservices.IMasterDataRepository
	TotalSingles       uint
	TotalAlbums        uint
	PlaylistWasUpdated bool
}

func (*PlaylistDownloader) Download

func (d *PlaylistDownloader) Download(playlistId uint) *DownloadResult

type StoreError

type StoreError struct {
	Cause error
}

func (*StoreError) Error

func (e *StoreError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL