Documentation ¶
Index ¶
- func Setup(path string) (*sql.DB, error)
- type RssRepository
- func (r *RssRepository) AddFeed(feed *rss.Feed) error
- func (r *RssRepository) AddSub(sub *rss.Subscription) error
- func (r *RssRepository) FeedByName(name string) (*rss.Feed, error)
- func (r *RssRepository) Feeds() ([]*rss.Feed, error)
- func (r *RssRepository) RemoveSub(subscription *rss.Subscription) error
- func (r *RssRepository) Subs(search rss.SubSearchOpt) ([]*rss.Subscription, error)
- func (r *RssRepository) UpdateSub(sub *rss.Subscription) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) AddSub ¶
func (r *RssRepository) AddSub(sub *rss.Subscription) error
func (*RssRepository) FeedByName ¶
func (r *RssRepository) FeedByName(name string) (*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
Click to show internal directories.
Click to hide internal directories.