package
0.1.1
Repository: https://github.com/crazcalm/go-rss-reader.git
Documentation: pkg.go.dev

# Functions

AddAuthor -- adds a author to the database.
AddEpisode -- adds an episode to the database.
AddFeedFileData -- Adds Feed File Data to the database.
AddFeedURL -- Adds a feed url to the database.
AddTag -- Adds a tag to the database.
AddTagToFeed -- Adds a Tag to a feed via the feeds_and_tags table.
AllActiveFeeds -- Returns all active feeds.
AllActiveFeedTags -- Returns all of the active tags associated with a feed.
AuthorExist -- Checks to see if an author exists.
Create -- Created the database.
DeleteAllTagsFromFeed -- flips the delete flag for all tags associated with a feed.
DeleteFeed -- Flips the delete flag on for a feed in the database.
DeleteTagFromFeed -- Deletes a tag from a feed.
EpisodeExist -- Based on the title, it checks if that episode already exists.
EpisodeHasAuthor -- returns true is an author id exists and false otherwise.
EpisodeHasMediaContent -- returns true is an author id exists and false otherwise.
Exist -- checks for the existance of a file.
FeedHasAuthor -- returns true is an author id exists and false otherwise.
FeedHasTag -- Checks to see if a feed has a specific tag.
FeedURLExist -- Checks to see if a feed exists.
FilterFeeds -- Takes in a list of feeds and compares them with the feeds listed in the Database.Returns all the feeds that are listed as active in the database but where not in the list.
FilterFeedTags -- Takes in a map of feed tags and compares them with the tags listed in the database for that feed.Returns all the tags for that feed that are listed as active in the database but where not passed in.
FormatEpisodeHeader -- formats the episode header.
GetAuthor -- returns the name and email of the author.
GetAuthorByNameAndEmail -- Given a name and email, will return authorID.
GetEpisode -- gets an episode from the database.
GetEpisodeAuthor -- returns the episode author.
GetEpisodeHeaderData -- Gets the infomation needed to create the episode header.
GetEpisodeIDByFeedIDAndTitle -- Gets the episodes using feed id and episode title.
GetEpisodeMediaContent -- Gets the episode's media content from the database.
GetFeedAuthor -- returns the feed author.
GetFeedAuthorID -- returns the feed's author ID.
GetFeedDataFromSite -- gets the feed data from the feed url and returns it.
GetFeedEpisodeIDs -- return ???.
GetFeedEpisodeSeenRatio -- return the seen over total episode seen for a feed.
GetFeedID -- Given a url or title, it returns the feed id.
GetFeedInfo -- Pulls the rss feed from the website and dumps the needed info into the database.
GetFeedRawData -- returns the feed's raw data.
GetFeedTagID -- gets the id for a feed tag.
GetFeedTitle -- returns the feed title.
GetFeedURL -- returnd the feed's url.
GetTagID -- Given a tag name, returns the tag id.
Init -- Initializes the database.
IsFeedDeleted -- Checks to see if the feed is currently marked as deleted.
IsFeedTagDeleted -- Checks to see if the feed tag is currently marked as deleted.
LoadFeed -- Loads a feed from the database.
LoadFeeds -- Used to load the feed info from the database.
MarkEpisodeAsSeen -- marks and episode as seen.
NewFeed -- Used to create a new Feed.
NewFeeds -- Used to create a slice of Feeds.
TagExist -- Checks to see if a tag exists.
UndeleteFeed -- Flips the delete flag off for a feed in the database.
UndeleteFeedTag -- Flips the delete flag off for a feed tag in the database.
UpdateEpisodeAuthor -- Updates the author associated with the episode.
UpdateEpisodeMediaContent -- updates the media content to the database.
UpdateFeedAuthor -- Updates the feed's author.
UpdateFeedRawData -- Updates the feed's raw data.
UpdateFeedTitle -- Updates the feed title.

# Constants

AuthorsTable -- author table sql.
EpisodesTable -- episodes table sql.
FeedsAndTagsTable -- feeds_and_tags table sql.
FeedsTable -- feeds table sql.
TagsTable -- tags table sql.

# Variables

DB -- A global reference to the DB.
DBPath -- path to test database.
TestDB -- testing database.

# Structs

Episode -- Data structure used to handle each new episode of a feed.
Feed -- Data structure used to hold a feed.

# Type aliases

Feeds -- A slice of feeds.