Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FavoritesRepo ¶
type FavoritesRepo interface { ListAll(ctx app.Context) ([]*Favorite, error) IsFavorite(ctx app.Context, favorite *Favorite) (bool, error) Add(ctx app.Context, favorite *Favorite) error Remove(ctx app.Context, favorite *Favorite) error }
func NewFavorites ¶
func NewFavorites(db *sql.DB) FavoritesRepo
Click to show internal directories.
Click to hide internal directories.