fetcher

package
v0.0.0-...-fd74e93 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TTC_RSS_URL = "https://ttc.ca/RSS/Service_Alerts/index.rss"

Variables

This section is empty.

Functions

func FetchAndPrint

func FetchAndPrint()

func RssFetchCommand

func RssFetchCommand() cli.Command

Types

type Fetcher

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

func NewFetcher

func NewFetcher() *Fetcher

func (*Fetcher) CurrentAlerts

func (f *Fetcher) CurrentAlerts() []*alert.TTCAlert

func (*Fetcher) FetchCurrent

func (f *Fetcher) FetchCurrent() error

func (*Fetcher) ProcessChannels

func (f *Fetcher) ProcessChannels(feed *rss.Feed, newChannels []*rss.Channel)

func (*Fetcher) ProcessItems

func (f *Fetcher) ProcessItems(feed *rss.Feed, ch *rss.Channel, newItems []*rss.Item)

Jump to

Keyboard shortcuts

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