commands

package
v1.0.1-0...-2d42981 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFetchAllHandler

func NewFetchAllHandler(
	episodesPageIterator,
	pageItemsIterator crawler.IteratorInterface,
	videoExtractor contract.VideoExtractorInterface,
	videoDownloader contract.VideoDownloaderInterface,

) contract.CommandHandlerInterface

NewFetchAllHandler return new fetch all command handler

func NewPrintCsvHandler

func NewPrintCsvHandler(
	episodesPageIterator,
	pageItemsIterator crawler.IteratorInterface,
	videoExtractor contract.VideoExtractorInterface,

) contract.CommandHandlerInterface

NewPrintCsvHandler return new fetch all command handler

Types

type FetchAll

type FetchAll struct {
	// contains filtered or unexported fields
}

FetchAll fetch all command

func NewFetchAll

func NewFetchAll(entryURL *url.URL, outputDir string) *FetchAll

NewFetchAll new fetch all command

func (*FetchAll) GetOutputDir

func (c *FetchAll) GetOutputDir() string

GetOutputDir return path of output dir

func (*FetchAll) GetOverviewURL

func (c *FetchAll) GetOverviewURL() *url.URL

GetOverviewURL return url of entry point

type PrintCsv

type PrintCsv struct {
	// contains filtered or unexported fields
}

PrintCsv print csv command

func NewPrintCsvCommand

func NewPrintCsvCommand(overviewURL *url.URL) *PrintCsv

NewPrintCsvCommand return print csv command

func (*PrintCsv) GetOverviewUrl

func (c *PrintCsv) GetOverviewUrl() *url.URL

GetOverviewUrl get overview url

type ProgressDTO

type ProgressDTO struct {
	Percentage   string
	SeriesTitle  string
	EpisodeTitle string
}

ProgressDTO DTO to export progress

Jump to

Keyboard shortcuts

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