Documentation ¶
Index ¶
- type ArticlePostgresStorage
- func (s *ArticlePostgresStorage) AllNotPosted(ctx context.Context, since time.Time, limit uint64) ([]model.Article, error)
- func (s *ArticlePostgresStorage) MarkAsPosted(ctx context.Context, article model.Article) error
- func (s *ArticlePostgresStorage) Store(ctx context.Context, article model.Article) error
- type SourcePostgresStorage
- func (s *SourcePostgresStorage) Add(ctx context.Context, source model.Source) (int64, error)
- func (s *SourcePostgresStorage) Delete(ctx context.Context, id int64) error
- func (s *SourcePostgresStorage) SetPriority(ctx context.Context, id int64, priority int) error
- func (s *SourcePostgresStorage) SourceByID(ctx context.Context, id int64) (*model.Source, error)
- func (s *SourcePostgresStorage) Sources(ctx context.Context) ([]model.Source, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticlePostgresStorage ¶
type ArticlePostgresStorage struct {
// contains filtered or unexported fields
}
func NewArticleStorage ¶
func NewArticleStorage(db *sqlx.DB) *ArticlePostgresStorage
func (*ArticlePostgresStorage) AllNotPosted ¶
func (*ArticlePostgresStorage) MarkAsPosted ¶
type SourcePostgresStorage ¶
type SourcePostgresStorage struct {
// contains filtered or unexported fields
}
func NewSourceStorage ¶
func NewSourceStorage(db *sqlx.DB) *SourcePostgresStorage
func (*SourcePostgresStorage) Delete ¶
func (s *SourcePostgresStorage) Delete(ctx context.Context, id int64) error
func (*SourcePostgresStorage) SetPriority ¶
func (*SourcePostgresStorage) SourceByID ¶
Click to show internal directories.
Click to hide internal directories.