package
0.0.0-20200826080141-14d7d2256b3f
Repository: https://github.com/teelevision/excommerce.git
Documentation: pkg.go.dev

# Functions

EncodeJSONResponse uses the json encoder to write an interface to the http response with an optional status code.
NewRouter creates a new router for any number of api routers.
ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file.

# Structs

Address - An address of a person, company or similar.
Cart - A cart containing products.
A CartsAPI binds http requests to an api service and writes the service results to the http response.
Coupon - A coupon for a product that can be used during checkout.
LoginForm - Login form.
MalformedInputError - The input is invalid.
Order - An order.
A OrdersAPI binds http requests to an api service and writes the service results to the http response.
Position - A position in a cart.
Product - A product of the shop.
A ProductsAPI binds http requests to an api service and writes the service results to the http response.
A Route defines the parameters for an api endpoint.
User - A user of the shop.
A UsersAPI binds http requests to an api service and writes the service results to the http response.

# Interfaces

CartsAPIRouter defines the required methods for binding the api requests to a responses for the CartsApi The CartsAPIRouter implementation should parse necessary information from the http request, pass the data to a CartsApiServicer to perform the required actions, then write the service results to the http response.
OrdersAPIRouter defines the required methods for binding the api requests to a responses for the OrdersApi The OrdersAPIRouter implementation should parse necessary information from the http request, pass the data to a OrdersApiServicer to perform the required actions, then write the service results to the http response.
ProductsAPIRouter defines the required methods for binding the api requests to a responses for the ProductsApi The ProductsAPIRouter implementation should parse necessary information from the http request, pass the data to a ProductsApiServicer to perform the required actions, then write the service results to the http response.
Router defines the required methods for retrieving api routes.
UsersAPIRouter defines the required methods for binding the api requests to a responses for the UsersApi The UsersAPIRouter implementation should parse necessary information from the http request, pass the data to a UsersApiServicer to perform the required actions, then write the service results to the http response.

# Type aliases

Routes are a collection of defined api endpoints.