parsers

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyString string = ""

EmptyString to use as pointer

Functions

func GetLatest

func GetLatest(p ParserInterface, shows []models.Show) []models.Episode

GetLatest from Service

func GetSeasonsConcurent

func GetSeasonsConcurent(p ParserInterface, shows []models.Show, fn worker) []models.Show

GetSeasonsConcurent get seasons with channels. nrWorkers number of workers runs work in parallel

func Set

func Set(p []ParserInterface)

Set set allication parsers

func WorkerGetSeasons

func WorkerGetSeasons(p ParserInterface, jobs <-chan models.Show, results chan<- models.Show)

WorkerGetSeasons used to get Seasons on a given show

Types

type ParserInterface

type ParserInterface interface {
	GetSeasons(show *models.Show) []models.Season
	GetShows() []models.Show
	GetShowsWithSeasons() []models.Show
	//GetLatest(shows []models.Show) []models.Episode
	Name() string
	PostCheckShows([]models.Show) []models.Show
}

ParserInterface struct

func All

func All(q string) []ParserInterface

All returns all parsers defined

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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