controllers

package
v0.0.0-...-4c001f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

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

Destroy destroys Order record and associated data

func (OrdersController) List

List lists all Orders

func (OrdersController) Pay

func (OrdersController) Received

func (OrdersController) Search

Search - search Orders

func (OrdersController) Show

Show shows single Order

func (OrdersController) Update

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 (ProductCategoriesController) Destroy

func (ProductCategoriesController) List

List lists all products

func (ProductCategoriesController) Show

func (ProductCategoriesController) Update

type ProductsController

type ProductsController struct{}

func BuildProductsController

func BuildProductsController() *ProductsController

BuildProductsController is ctor of ProductsController

func (ProductsController) Create

Create shows single product

func (ProductsController) Destroy

Destroy destroys product record and associated data

func (ProductsController) List

List lists all products

func (ProductsController) Offline

Offline - mark products as offline

func (ProductsController) Online

Online - mark products as online

func (ProductsController) Search

Search - search products

func (ProductsController) Show

Show shows single product

func (ProductsController) Update

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

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

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 (UsersController) AddressList

func (uc UsersController) AddressList(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

AddressList lists all products

func (UsersController) Cart

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

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

session related functions

Signin - signin existing user

func (UsersController) Signout

Signout - sign out existing login session

func (UsersController) Signup

Signup - signup new user

func (UsersController) UpdateCart

func (UsersController) UpdateUserInfo

func (uc UsersController) UpdateUserInfo(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

UpdateUserInfo - updateuser info json

func (UsersController) UserInfo

User info related

UserInfo - user info json

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL