sqlite

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(path string) (*sql.DB, error)

Types

type RssRepository

type RssRepository struct {
	// contains filtered or unexported fields
}

func NewRssRepository added in v0.5.0

func NewRssRepository(db *sql.DB) *RssRepository

func (*RssRepository) AddFeed

func (r *RssRepository) AddFeed(feed *rss.Feed) error

func (*RssRepository) AddSub

func (r *RssRepository) AddSub(sub *rss.Subscription) error

func (*RssRepository) FeedByName

func (r *RssRepository) FeedByName(name string) (*rss.Feed, error)

func (*RssRepository) Feeds added in v0.5.0

func (r *RssRepository) Feeds() ([]*rss.Feed, error)

func (*RssRepository) RemoveSub added in v0.5.0

func (r *RssRepository) RemoveSub(subscription *rss.Subscription) error

func (*RssRepository) Subs added in v0.5.0

func (r *RssRepository) Subs(search rss.SubSearchOpt) ([]*rss.Subscription, error)

func (*RssRepository) UpdateSub

func (r *RssRepository) UpdateSub(sub *rss.Subscription) error

Jump to

Keyboard shortcuts

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