Documentation ¶
Index ¶
- type DB
- func (db *DB) Create(ctx context.Context, feed *feeds.Feed) error
- func (db *DB) Get(ctx context.Context, id string, userID string) (*feeds.Feed, error)
- func (db *DB) List(ctx context.Context, userID string, request *feeds.ListFeedsRequest) ([]*feeds.Feed, error)
- func (db *DB) ListAll(ctx context.Context) ([]*feeds.Feed, error)
- func (db *DB) Update(ctx context.Context, feed *feeds.Feed, userID string) 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
}
DB allows to access feeds database.
func (*DB) List ¶
func (db *DB) List(ctx context.Context, userID string, request *feeds.ListFeedsRequest) ([]*feeds.Feed, error)
List returns articles for a user.
Click to show internal directories.
Click to hide internal directories.