package
0.0.0-20200420230436-8d51db285287
Repository: https://github.com/retgits/acme-serverless-cart.git
Documentation: pkg.go.dev

# Functions

AddItemToCart adds an item to the cart of a user.
ClearCart removes all items from a cart.
CORSHandler sets CORS headers for the preflight request.
ErrorHandler takes the activity where the error occured and the error object and sends a message to sentry.
GetAllCarts gets all carts that are available in the database.
GetCartItems gets the contents of a single cart.
GetCartValue gets the total monetary value in the cart of a user.
GetTotalItems gets the total number of items in a cart.
ModifyCart modifies the entire cart.
ModifyCartItem modifies a single item in a cart.