Documentation ¶
Index ¶
- Variables
- func BackfillSendingEntry(ctx context.Context, srv *services.Services, to string, ...) error
- func DownloadNewFeedEntries(ctx context.Context, srv *services.Services, feedURLs []string) error
- func ParseFeedsList(feedsList string) ([]string, error)
- func SendEntry(ctx context.Context, srv *services.Services, to string, ...) error
- type Entry
- type EntryWithSourceTitle
- type Feed
- type SentEmail
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEntryHasNoLink = errors.New("entry has no link")
Functions ¶
func BackfillSendingEntry ¶
func DownloadNewFeedEntries ¶
func DownloadNewFeedEntries( ctx context.Context, srv *services.Services, feedURLs []string, ) error
DownloadNewFeedEntries downloads RSS feeds from the passed in list and stores all new articles into the SQLite database.
func ParseFeedsList ¶
ParseFeedsList reads the list of feeds from the `feedsList` file and returns a parsed list.
Types ¶
type Entry ¶
type EntryWithSourceTitle ¶
func ReadNewEntries ¶
func ReadNewEntries(ctx context.Context, srv *services.Services, notSentTo string) ([]EntryWithSourceTitle, error)
ReadNewEntries returns all feed entries that have not yet been sent out over email.
Click to show internal directories.
Click to hide internal directories.