scraper

package
v0.0.0-...-30a0ae6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnouncementScraper

type AnnouncementScraper interface {
	Scraper
	Init(log *log.Logger,
		newAnnouncementReporter func(announcement *types.Announcement))
	Networks() []*types.Network
	Sources() []string
	Announcements(source string) []*types.Announcement
}

AnnouncementScraper runs in the background retrieving announcements about a network.

type ETAScraper

type ETAScraper interface {
	Scraper
	Init(node sqalx.Node, log *log.Logger) error
}

ETAScraper is something that runs in the background retrieving vehicle ETAs

type Scraper

type Scraper interface {
	ID() string
	Begin()
	End()
	Running() bool
}

Scraper is something that fetches information

type StatusScraper

type StatusScraper interface {
	Scraper
	Init(node sqalx.Node, log *log.Logger)
	Networks() []*types.Network
	Lines() []*types.Line
	LastUpdate() time.Time
}

StatusScraper is something that runs in the background retrieving status of lines StatusScrapers can report duplicate states to the statusReporter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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