Documentation
¶
Overview ¶
Package api containing API initialization and API route handler
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API contain context, map of mongodb collection, and echo router
func (*API) AddOrderHandler ¶
AddOrderHandler route handler for add order (Method: POST, User: buyer)
func (*API) DeleteOrderHandler ¶
DeleteOrderHandler route handler for delete order (Method: DELETE, User: all)
func (*API) GetOrdersHandler ¶
GetOrdersHandler route handler for get orders (Method: GET, User: all)
func (*API) InitCollections ¶
InitCollections initialize API connection to mongodb collections
Click to show internal directories.
Click to hide internal directories.