scraping

package
v0.0.0-...-0953be8 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventDetailsScraper

type EventDetailsScraper struct{}

func NewEventDetailsScraper

func NewEventDetailsScraper() *EventDetailsScraper

func (EventDetailsScraper) Run

func (l EventDetailsScraper) Run(job ScrapeJob) (interface{}, error)

func (EventDetailsScraper) Schedule

func (l EventDetailsScraper) Schedule(job ScrapeJob, cronExp string)

type EventScraper

type EventScraper struct{}

func NewEventScraper

func NewEventScraper() *EventScraper

func (EventScraper) Run

func (l EventScraper) Run(job ScrapeJob) (interface{}, error)

func (EventScraper) Schedule

func (l EventScraper) Schedule(job ScrapeJob, cronExp string)

type FetchDetailsJob

type FetchDetailsJob struct {
	Events []*events.Event
}

type FetchEventsJob

type FetchEventsJob struct {
	Tguid string
	From  int
	To    int
}

type ScrapeJob

type ScrapeJob interface {
	// contains filtered or unexported methods
}

type Scraper

type Scraper interface {
	Schedule(job ScrapeJob, cronExp string)
	Run(job ScrapeJob) (interface{}, error)
}

Jump to

Keyboard shortcuts

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