feedstorage

package
v0.0.0-...-e934dfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupFeedTable

func SetupFeedTable(db *sqlx.DB)

SetupFeedTable creates the feeds table if it does not exist.

func Update

func Update(db *sqlx.DB, feed Feed) (sql.Result, error)

Update stores new data in the database.

Types

type Feed

type Feed struct {
	ID           int    `db:"id"`
	Show         string `db:"show"`
	URL          string `db:"url"`
	LastItemDate string `db:"last_update"`
}

Feed stores an RSS/Atom feed to automatically grab videos.

func GetAllFeeds

func GetAllFeeds(db *sqlx.DB) ([]Feed, error)

GetAllFeeds retrieves all feeds from the database in id order.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL