package
0.0.0-20211006002630-2f9ccf387d5b
Repository: https://github.com/christianprzybulinski/go-cart-api.git
Documentation: pkg.go.dev

# Functions

NewCartEndpoint initialize the Endpoint, setting the envvars inside the struct or its default valuesFor each parameters, its checked if its empty, in case true we use the default value.

# Structs

CartEndpoint struct that represents the CardEndpoints envvars and Database.
CartRequest struct to Represent each Product Request from the Cart API.
CartRequests struct the reprents a list of Product Request from the Cart API.
CartResponse struct to represent a Response from the Cart API.
ResponseProduct struct to represent the Product inside the response from the Cart API.

# Interfaces

Endpoint is the default interface used to configure all the possible handlers that implement the Post method.