Documentation ¶
Index ¶
- type FavouritesStorage
- func (favouritesStorage *FavouritesStorage) AppendAdvByIDs(ctx context.Context, userID uint, advertID uint) bool
- func (favouritesStorage *FavouritesStorage) DeleteAdvByIDs(ctx context.Context, userID uint, advertID uint) error
- func (favouritesStorage *FavouritesStorage) GetFavouritesByUserID(ctx context.Context, userID uint) ([]*models.ReturningAdInList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FavouritesStorage ¶
type FavouritesStorage struct {
// contains filtered or unexported fields
}
func NewFavouritesStorage ¶
func NewFavouritesStorage(pool *pgxpool.Pool, metrics *mymetrics.DatabaseMetrics) *FavouritesStorage
func (*FavouritesStorage) AppendAdvByIDs ¶
func (*FavouritesStorage) DeleteAdvByIDs ¶
func (*FavouritesStorage) GetFavouritesByUserID ¶
func (favouritesStorage *FavouritesStorage) GetFavouritesByUserID(ctx context.Context, userID uint) ([]*models.ReturningAdInList, error)
Click to show internal directories.
Click to hide internal directories.