Documentation ¶
Index ¶
- Variables
- type CartService
- func (s *CartService) AddItem(ctx context.Context, cartID string, item model.CartItem) (*model.Cart, error)
- func (s *CartService) EmptyCart(ctx context.Context, cartID string) (*model.Cart, error)
- func (s *CartService) GetCart(ctx context.Context, cartID string) (*model.Cart, error)
- func (s *CartService) NewCart(ctx context.Context) (*model.Cart, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CartNotFound = errors.New("cart not found")
Functions ¶
This section is empty.
Types ¶
type CartService ¶
type CartService struct {
// contains filtered or unexported fields
}
func NewCartService ¶
func NewCartService(repo ports.CartRepository, logger *zap.Logger, tp telemetry.Provider) *CartService
Click to show internal directories.
Click to hide internal directories.