Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FeedByName ¶
func FeedByName(name string, retriever FeedRetriever)
FeedByName checks the previously created feed for an entry with the given source name
func GetFeed ¶
func GetFeed(locale string, allStr string, shouldProxy bool, provider FeedProvider)
GetFeed creates an http.Client and fetches the latest Lantern public feed for displaying on the home screen.
func GetFeedURL ¶
GetFeedURL returns the URL to use for looking up the feed by looking up the users country before defaulting to the specified default locale if the country can't be determined.
func NumFeedEntries ¶
func NumFeedEntries() int
NumFeedEntries just returns the total number of entries across all feeds
Types ¶
type Feed ¶
type Feed struct { Feeds map[string]*Source `json:"feeds"` Entries FeedItems `json:"entries"` Items map[string]FeedItems `json:"-"` Sorted []string `json:"sorted_feeds"` }
Feed contains the data we get back from the public feed
type FeedProvider ¶
type FeedProvider interface { // AddSource: called for each new feed source AddSource(string) }
type FeedRetriever ¶
Click to show internal directories.
Click to hide internal directories.