repository

package
v0.0.0-...-095c751 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 *FavouritesStorage) AppendAdvByIDs(ctx context.Context, userID uint, advertID uint) bool

func (*FavouritesStorage) DeleteAdvByIDs

func (favouritesStorage *FavouritesStorage) DeleteAdvByIDs(ctx context.Context, userID uint, advertID uint) error

func (*FavouritesStorage) GetFavouritesByUserID

func (favouritesStorage *FavouritesStorage) GetFavouritesByUserID(ctx context.Context,
	userID uint) ([]*models.ReturningAdInList, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL