Documentation ¶
Overview ¶
Package rssfeed runs in parallel to rssbot. It polls an RSS feed URL and sends formatted output to the IRC bot.
This file provides a simple, ordered cache with a limited length for RSS feed items.
Package rssfeed runs in parallel to rssbot. It polls an RSS feed URL and sends formatted output to the IRC bot.
This file handles polling of an individual RSS feed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { Items ItemMap Order []string Length int // contains filtered or unexported fields }
Cache contains saved feed items we don't want to display again.
type Poller ¶
type Poller struct { Bot *rssbot.Bot Cache *Cache Config *util.RSSConfig Logger *logrus.Logger Parser *gofeed.Parser // If true, the poller is on its first run and shouldn't announce the last // items from the feed. FirstRun bool }
Poller contains details for polling RSS feeds.
Click to show internal directories.
Click to hide internal directories.