summaryrefslogtreecommitdiffstats
path: root/feed/feed.go
Commit message (Collapse)AuthorAgeFilesLines
* feed: update Processsiddharth2021-11-281-3/+4
| | | | | Make a copy of `entry` into `e` in the loop that processes all Entries. Then use `e` instead of `entry`.
* feed: fix Validatesiddharth2021-11-281-9/+2
| | | | | Don't set YDLPath and DumpDir on Feed in `Validate` function. Set it in the FeedConfig's `validate` function instead.
* feed: add Feed.Processsiddharth2021-11-281-0/+80
| | | | | | Main function that gets, parses, and downloads entries in the feed. The Feed.processEntry function is a stub for now.
* feed: update Feed.Lastsiddharth2021-11-281-1/+1
| | | | Change type to `int`.
* feed: add Feed.Lastsiddharth2021-11-281-0/+6
|
* feed: Feed.Object -> Feed.Entriessiddharth2021-11-281-17/+23
| | | | | Also refactor nprUnmarshal and youtubeUnmarshal to return []schema.Entry.
* feed: update feedsiddharth2021-11-281-2/+10
| | | | Add YDLPath to Feed. Set it during Validate().
* feed: add unmarshalsiddharth2021-11-271-0/+22
| | | | Unmarshals the feed and sets Feed.Object
* feed: add youtubeUnmarshalsiddharth2021-11-271-0/+17
| | | | Unmarshler for a YouTube Feed.
* feed: add nprUnmarshalsiddharth2021-11-271-0/+23
| | | | Unmarshler for a NPR Feed.
* feed: add `get`siddharth2021-11-271-0/+28
| | | | HTTP GETs raw feed from Feed.Source
* feed: update Feedsiddharth2021-11-271-0/+1
| | | | Add `Object` field.
* add feed packagesiddharth2021-11-271-0/+55
Move feed type and function to its own package.