Documentation
¶
Index ¶
- func Migrate(dbConnStr string)
- type PostgresStorage
- func (s *PostgresStorage) GetArticleStats(ctx context.Context) ([]feed.ArticleStats, error)
- func (s *PostgresStorage) GetArticles(ctx context.Context, options ...server.GetArticleOption) ([]feed.Article, error)
- func (s *PostgresStorage) Ping(ctx context.Context) error
- func (s *PostgresStorage) SaveArticles(ctx context.Context, articles []feed.Article) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostgresStorage ¶
type PostgresStorage struct {
// contains filtered or unexported fields
}
func NewPostgresStorage ¶
func NewPostgresStorage(connStr string) (*PostgresStorage, error)
func (*PostgresStorage) GetArticleStats ¶
func (s *PostgresStorage) GetArticleStats(ctx context.Context) ([]feed.ArticleStats, error)
func (*PostgresStorage) GetArticles ¶
func (s *PostgresStorage) GetArticles(ctx context.Context, options ...server.GetArticleOption) ([]feed.Article, error)
func (*PostgresStorage) SaveArticles ¶
Click to show internal directories.
Click to hide internal directories.