Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadHTPPStatusDownload = errors.New("bad http status download demo")
ErrBadHTPPStatusDownload bad http status download demo
View Source
var ErrChanFull = errors.New("chan downloaderDem is full")
ErrChanFull chan is full
View Source
var ErrCouldNotShutdown = errors.New("could not shutdown downloader demo")
ErrCouldNotShutdown could not shutdown downloader demo
View Source
var ErrDemoExtensionNotTakenIntoAccount = errors.New("extension of the demo is not taken into account")
ErrDemoExtensionNotTakenIntoAccount extension of the demo is not taken into account
Functions ¶
func DownloadDemo ¶
DownloadDemo download a the demo in parameters
Types ¶
type DataDownloaderDem ¶
type DataDownloaderDem struct {
// contains filtered or unexported fields
}
DataDownloaderDem data send for download
type DownloaderDem ¶
DownloaderDem workers who download .dem
func Start ¶
func Start(db *gorm.DB, anal *analyzer.Analyzer, logDownloaderDem *custlogger.Logger) (*DownloaderDem, error)
Start starts this worker
func (*DownloaderDem) AddDataDownloaderDem ¶
func (dd *DownloaderDem) AddDataDownloaderDem(demo model.Demo) error
AddDataDownloaderDem add data to be downloaded
func (*DownloaderDem) CheckForEver ¶
func (dd *DownloaderDem) CheckForEver()
CheckForEver checks if their is a new demo to download
func (*DownloaderDem) CheckForEverNotDownloaded ¶
func (dd *DownloaderDem) CheckForEverNotDownloaded()
CheckForEverNotDownloaded at the start of the downloaderDem, check if there are demos to download
func (*DownloaderDem) CheckNotDownloaded ¶
func (dd *DownloaderDem) CheckNotDownloaded() error
CheckNotDownloaded check if there are demos to download
func (*DownloaderDem) Shutdown ¶
func (dd *DownloaderDem) Shutdown() error
Shutdown shutdown downloaderdem
Click to show internal directories.
Click to hide internal directories.