downloaderdem

package
v0.0.0-...-bd0fe52 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

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

func DownloadDemo(db *gorm.DB, log *custlogger.Logger, demo model.Demo) error

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

type DownloaderDem struct {
	Anal *analyzer.Analyzer
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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