Documentation
¶
Index ¶
- type Storage
- func (s *Storage) DeleteWishlistItem(ctx context.Context, itemID wishlistPkg.ItemID) error
- func (s *Storage) Get(ctx context.Context, id wishlistPkg.ID) (*wishlistPkg.Wishlist, error)
- func (s *Storage) GetByUserID(ctx context.Context, userID userPkg.ID) ([]*wishlistPkg.Wishlist, error)
- func (s *Storage) GetWishlistItemByID(ctx context.Context, itemID wishlistPkg.ItemID) (*wishlistPkg.Item, error)
- func (s *Storage) GetWishlistItems(ctx context.Context, wishlistID wishlistPkg.ID, limit, offset uint) (items []*wishlistPkg.Item, haveMore bool, err error)
- func (s *Storage) Upsert(ctx context.Context, w *wishlistPkg.Wishlist) error
- func (s *Storage) UpsertWishlistItem(ctx context.Context, item *wishlistPkg.Item) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewImageStorage ¶
func (*Storage) DeleteWishlistItem ¶
func (*Storage) Get ¶
func (s *Storage) Get(ctx context.Context, id wishlistPkg.ID) (*wishlistPkg.Wishlist, error)
func (*Storage) GetByUserID ¶
func (*Storage) GetWishlistItemByID ¶
func (s *Storage) GetWishlistItemByID(ctx context.Context, itemID wishlistPkg.ItemID) (*wishlistPkg.Item, error)
func (*Storage) GetWishlistItems ¶
func (s *Storage) GetWishlistItems(ctx context.Context, wishlistID wishlistPkg.ID, limit, offset uint) (items []*wishlistPkg.Item, haveMore bool, err error)
func (*Storage) UpsertWishlistItem ¶
Click to show internal directories.
Click to hide internal directories.