Documentation ¶
Index ¶
- type OrdersController
- func (pc OrdersController) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc OrdersController) CreateRefundExpress(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc OrdersController) CreateRefundRequest(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc OrdersController) Destroy(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc OrdersController) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc OrdersController) Pay(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc OrdersController) Received(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc OrdersController) Search(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc OrdersController) Show(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc OrdersController) Update(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc OrdersController) UpdateRefundExpress(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc OrdersController) UpdateRefundRequest(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- type ProductCategoriesController
- func (prod_cat_c ProductCategoriesController) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (prod_cat_c ProductCategoriesController) Destroy(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (prod_cat_c ProductCategoriesController) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (prod_cat_c ProductCategoriesController) Show(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (prod_cat_c ProductCategoriesController) Update(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- type ProductsController
- func (pc ProductsController) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc ProductsController) Destroy(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc ProductsController) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc ProductsController) Offline(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc ProductsController) Online(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc ProductsController) Search(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc ProductsController) Show(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (pc ProductsController) Update(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- type StoresController
- type UsersController
- func (uc UsersController) AddToCart(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) AddressList(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) Cart(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) ChangePassword(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) CreateAddress(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) DeleteNotification(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) NotificationList(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) ReadNotification(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) ResetPassword(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) Signin(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) Signout(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) Signup(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) UpdateCart(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) UpdateUserInfo(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (uc UsersController) UserInfo(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrdersController ¶
type OrdersController struct{}
func BuildOrdersController ¶
func BuildOrdersController() *OrdersController
BuildOrdersController is ctor of OrdersController
func (OrdersController) Create ¶
func (pc OrdersController) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Create shows single Order
func (OrdersController) CreateRefundExpress ¶
func (pc OrdersController) CreateRefundExpress(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (OrdersController) CreateRefundRequest ¶
func (pc OrdersController) CreateRefundRequest(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (OrdersController) Destroy ¶
func (pc OrdersController) Destroy(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Destroy destroys Order record and associated data
func (OrdersController) List ¶
func (pc OrdersController) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
List lists all Orders
func (OrdersController) Pay ¶
func (pc OrdersController) Pay(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (OrdersController) Received ¶
func (pc OrdersController) Received(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (OrdersController) Search ¶
func (pc OrdersController) Search(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Search - search Orders
func (OrdersController) Show ¶
func (pc OrdersController) Show(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Show shows single Order
func (OrdersController) Update ¶
func (pc OrdersController) Update(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Update updates single Order record
func (OrdersController) UpdateRefundExpress ¶
func (pc OrdersController) UpdateRefundExpress(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (OrdersController) UpdateRefundRequest ¶
func (pc OrdersController) UpdateRefundRequest(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
type ProductCategoriesController ¶
type ProductCategoriesController struct{}
ProductCategoriesController is used for all categories of products in app
func BuildProductCategoriesController ¶
func BuildProductCategoriesController() *ProductCategoriesController
BuildProductCategoriesController is ctor of ProductCategoriesController
func (ProductCategoriesController) Create ¶
func (prod_cat_c ProductCategoriesController) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (ProductCategoriesController) Destroy ¶
func (prod_cat_c ProductCategoriesController) Destroy(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (ProductCategoriesController) List ¶
func (prod_cat_c ProductCategoriesController) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
List lists all products
func (ProductCategoriesController) Show ¶
func (prod_cat_c ProductCategoriesController) Show(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (ProductCategoriesController) Update ¶
func (prod_cat_c ProductCategoriesController) Update(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
type ProductsController ¶
type ProductsController struct{}
func BuildProductsController ¶
func BuildProductsController() *ProductsController
BuildProductsController is ctor of ProductsController
func (ProductsController) Create ¶
func (pc ProductsController) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Create shows single product
func (ProductsController) Destroy ¶
func (pc ProductsController) Destroy(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Destroy destroys product record and associated data
func (ProductsController) List ¶
func (pc ProductsController) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
List lists all products
func (ProductsController) Offline ¶
func (pc ProductsController) Offline(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Offline - mark products as offline
func (ProductsController) Online ¶
func (pc ProductsController) Online(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Online - mark products as online
func (ProductsController) Search ¶
func (pc ProductsController) Search(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Search - search products
func (ProductsController) Show ¶
func (pc ProductsController) Show(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Show shows single product
func (ProductsController) Update ¶
func (pc ProductsController) Update(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Update updates single product record
type StoresController ¶
type StoresController struct{}
StoresController - controller code for stores
func BuildStoresController ¶
func BuildStoresController() *StoresController
BuildStoresController is ctor of StoresController
func (StoresController) Create ¶
func (store_c StoresController) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Create - create store record
func (StoresController) Destroy ¶
func (store_c StoresController) Destroy(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Destroy - destroy store record
func (StoresController) List ¶
func (store_c StoresController) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
List lists all stores
type UsersController ¶
type UsersController struct{}
UsersController is used for user records
func BuildUsersController ¶
func BuildUsersController() *UsersController
BuildUsersController is ctor of UsersController
func (UsersController) AddToCart ¶
func (uc UsersController) AddToCart(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (UsersController) AddressList ¶
func (uc UsersController) AddressList(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
AddressList lists all products
func (UsersController) Cart ¶
func (uc UsersController) Cart(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Cart related
func (UsersController) ChangePassword ¶
func (uc UsersController) ChangePassword(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (UsersController) CreateAddress ¶
func (uc UsersController) CreateAddress(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
CreateAddress - create new user address
func (UsersController) DeleteNotification ¶
func (uc UsersController) DeleteNotification(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
DeleteNotification - mark given notifications as deleted (not delete it really from DB)
func (UsersController) List ¶
func (uc UsersController) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
List lists all products
func (UsersController) NotificationList ¶
func (uc UsersController) NotificationList(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
NotificationList - list all notifications
func (UsersController) ReadNotification ¶
func (uc UsersController) ReadNotification(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
ReadNotification - mark given notifications as read
func (UsersController) ResetPassword ¶
func (uc UsersController) ResetPassword(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
password related functions
ResetPassword - reset user password
func (UsersController) Signin ¶
func (uc UsersController) Signin(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
session related functions
Signin - signin existing user
func (UsersController) Signout ¶
func (uc UsersController) Signout(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Signout - sign out existing login session
func (UsersController) Signup ¶
func (uc UsersController) Signup(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Signup - signup new user
func (UsersController) UpdateCart ¶
func (uc UsersController) UpdateCart(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (UsersController) UpdateUserInfo ¶
func (uc UsersController) UpdateUserInfo(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
UpdateUserInfo - updateuser info json
func (UsersController) UserInfo ¶
func (uc UsersController) UserInfo(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
User info related
UserInfo - user info json