//
pkg.gl
Category
github.com/ChristianPrzybulinski/go-cart-api
src
handlers
package
0.0.0-20211006002630-2f9ccf387d5b
Repository:
https://github.com/christianprzybulinski/go-cart-api.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
1
Files
32 SLOC
#
Functions
SetupHandlers
SetupHandlers defines the handlers that the API has, for now the only one is /cart.
StartServer
StartServer method start the server, calling the handlers configured and listening in the address received inside the struct.
#
Structs
Args
Args is used to define the API Address (Server:Port) and the DatabasePath since we are using internal json files as our database.