Documentation ¶
Index ¶
- type DB
- func (db *DB) AddArticle(ctx context.Context, a storage.Article) (int, error)
- func (db *DB) AddArticles(ctx context.Context, articles []storage.Article) error
- func (db *DB) AddRSSFeed(ctx context.Context, feed storage.RSSFeed) (int, error)
- func (db *DB) Article(ctx context.Context, aid int) (storage.Article, error)
- func (db *DB) Articles(ctx context.Context, pageNum, pageSize int) ([]storage.Article, error)
- func (db *DB) CountArticles(ctx context.Context, search string) (int, error)
- func (db *DB) DeleteArticle(ctx context.Context, a storage.Article) error
- func (db *DB) DeleteRSSFeed(ctx context.Context, feed storage.RSSFeed) error
- func (db *DB) Feeds(ctx context.Context) ([]storage.RSSFeed, error)
- func (db *DB) LoadRSSFeeds(ctx context.Context, cfg *config.Config) error
- func (db *DB) SearchArticles(ctx context.Context, search string, pageNum, pageSize int) ([]storage.Article, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AddArticle ¶
func (*DB) AddArticles ¶
func (*DB) AddRSSFeed ¶
func (*DB) CountArticles ¶
func (*DB) DeleteArticle ¶
func (*DB) DeleteRSSFeed ¶
Click to show internal directories.
Click to hide internal directories.