Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CartController ¶
type CartController interface { AddItem(w http.ResponseWriter, r *http.Request) GetCartItems(w http.ResponseWriter, r *http.Request) RemoveItem(w http.ResponseWriter, r *http.Request) UpdateItem(w http.ResponseWriter, r *http.Request) }
CartController interface for handlers of different CRUD operations for cart
func NewCartController ¶
func NewCartController(cartService service.CartService, tokenService service.TokenService) CartController
NewCartController is a constructor for cart
Click to show internal directories.
Click to hide internal directories.