rss

package
v0.0.0-...-95ffa0a Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2017 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BASEUrl = "https://status.aws.amazon.com"

BASEUrl - Base url to grab the AWS status page

Functions

func PrintFeed

func PrintFeed(f *Feed) string

PrintFeed - prints out the feed

Types

type Feed

type Feed struct {
	Region  string
	Service string
	URL     string
	PollInt int
	Alert   bool
}

Feed - Struct to contain the feed data for individual services

func NewFeed

func NewFeed() *Feed

NewFeed - Feed constructor

type Rss

type Rss struct {
	Config *viper.Viper
	Feed   []*Feed
}

Rss - Holds the config for the RSS and slice of Feeds

func NewRss

func NewRss() *Rss

func (*Rss) GetFeed

func (r *Rss) GetFeed() error

GetFeed - grabs all the RSS feeds from the status page

func (*Rss) PollFeed

func (r *Rss) PollFeed()

PollFeed - Starts polling the list of feed sent

Jump to

Keyboard shortcuts

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