Documentation ¶
Index ¶
- func AccessForbidden(c *gin.Context)
- func AdminGet(c *gin.Context)
- func AuthRequired(role string) gin.HandlerFunc
- func CartAdd(c *gin.Context)
- func CartDelete(c *gin.Context)
- func CartGet(c *gin.Context)
- func CartProcess(c *gin.Context)
- func CategoryCreate(c *gin.Context)
- func CategoryDelete(c *gin.Context)
- func CategoryEdit(c *gin.Context)
- func CategoryGet(c *gin.Context)
- func CategoryIndex(c *gin.Context)
- func CategoryNew(c *gin.Context)
- func CategoryUpdate(c *gin.Context)
- func ContextData() gin.HandlerFunc
- func CreateXMLSitemap()
- func DefaultH(c *gin.Context) gin.H
- func HomeGet(c *gin.Context)
- func ImageCreate(c *gin.Context)
- func ImageDelete(c *gin.Context)
- func InternalError(c *gin.Context)
- func LoadTemplates(router *gin.Engine)
- func ManageGet(c *gin.Context)
- func ManagePost(c *gin.Context)
- func MenuCreate(c *gin.Context)
- func MenuDelete(c *gin.Context)
- func MenuEdit(c *gin.Context)
- func MenuIndex(c *gin.Context)
- func MenuItemCreate(c *gin.Context)
- func MenuItemDelete(c *gin.Context)
- func MenuItemEdit(c *gin.Context)
- func MenuItemIndex(c *gin.Context)
- func MenuItemNew(c *gin.Context)
- func MenuItemUpdate(c *gin.Context)
- func MenuNew(c *gin.Context)
- func MenuUpdate(c *gin.Context)
- func MethodNotAllowed(c *gin.Context)
- func NotFound(c *gin.Context)
- func OrderConfirm(c *gin.Context)
- func OrderConsultPost(c *gin.Context)
- func OrderCreate(c *gin.Context)
- func OrderDelete(c *gin.Context)
- func OrderGet(c *gin.Context)
- func OrderIndex(c *gin.Context)
- func OrderNew(c *gin.Context)
- func PageCreate(c *gin.Context)
- func PageDelete(c *gin.Context)
- func PageEdit(c *gin.Context)
- func PageGet(c *gin.Context)
- func PageIndex(c *gin.Context)
- func PageNew(c *gin.Context)
- func PageUpdate(c *gin.Context)
- func ProductCreate(c *gin.Context)
- func ProductDelete(c *gin.Context)
- func ProductEdit(c *gin.Context)
- func ProductGet(c *gin.Context)
- func ProductIndex(c *gin.Context)
- func ProductNew(c *gin.Context)
- func ProductUpdate(c *gin.Context)
- func RssGet(c *gin.Context)
- func SearchGet(c *gin.Context)
- func SettingCreate(c *gin.Context)
- func SettingDelete(c *gin.Context)
- func SettingEdit(c *gin.Context)
- func SettingIndex(c *gin.Context)
- func SettingNew(c *gin.Context)
- func SettingUpdate(c *gin.Context)
- func ShowErrorPage(c *gin.Context, code int, err error)
- func SignInGet(c *gin.Context)
- func SignInPost(c *gin.Context)
- func SignUpEnabled() bool
- func SignUpGet(c *gin.Context)
- func SignUpPost(c *gin.Context)
- func SignoutGet(c *gin.Context)
- func SlideCreate(c *gin.Context)
- func SlideDelete(c *gin.Context)
- func SlideEdit(c *gin.Context)
- func SlideIndex(c *gin.Context)
- func SlideNew(c *gin.Context)
- func SlideUpdate(c *gin.Context)
- func UploadPost(c *gin.Context)
- func UserCreate(c *gin.Context)
- func UserDelete(c *gin.Context)
- func UserEdit(c *gin.Context)
- func UserIndex(c *gin.Context)
- func UserNew(c *gin.Context)
- func UserUpdate(c *gin.Context)
- type Breadcrumb
- type CartType
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessForbidden ¶
AccessForbidden handles Access Forbidden http code
func AuthRequired ¶
func AuthRequired(role string) gin.HandlerFunc
AuthRequired grants access to authenticated users with a 'role' role
func CategoryCreate ¶
CategoryCreate handles POST /admin/new_category route
func CategoryDelete ¶
CategoryDelete handles POST /admin/categories/:id/delete route
func CategoryEdit ¶
CategoryEdit handles GET /admin/categories/:id/edit route
func CategoryIndex ¶
CategoryIndex handles GET /admin/categories route
func CategoryNew ¶
CategoryNew handles GET /admin/new_category route
func CategoryUpdate ¶
CategoryUpdate handles POST /admin/categories/:id/edit route
func ContextData ¶
func ContextData() gin.HandlerFunc
ContextData stores in gin context the common data, such as user info...
func CreateXMLSitemap ¶
func CreateXMLSitemap()
CreateXMLSitemap creates xml sitemap for search engines, and saves in public/sitemap folder
func ImageDelete ¶
ImageDelete handles POST /admin/images/:id/delete route
func InternalError ¶
InternalError handles Internal Server Error http code
func LoadTemplates ¶
LoadTemplates loads templates from views directory to gin engine
func ManagePost ¶
ManagePost handles POST /:role/manage route, updates user credentials
func MenuDelete ¶
MenuDelete handles POST /admin/menu/:id/delete route
func MenuItemCreate ¶
MenuItemCreate handles POST /admin/menu/:id/new_item route
func MenuItemDelete ¶
MenuItemDelete handles POST /admin/menu/:id/delete/:itemid route
func MenuItemEdit ¶
MenuItemEdit handles GET /admin/menu/:id/edit/:itemid route
func MenuItemIndex ¶
MenuItemIndex handles GET /admin/menu/:id route
func MenuItemNew ¶
MenuItemNew handles GET /admin/menu/:id/new_item route
func MenuItemUpdate ¶
MenuItemUpdate handles POST /admin/menu/:id/edit/:itemid route
func MenuUpdate ¶
MenuUpdate handles POST /admin/menu/:id/edit route
func MethodNotAllowed ¶
MethodNotAllowed handles gin MethodNotAllowed error
func OrderConfirm ¶
OrderConfirm handles GET /confirm_order/:id route
func OrderConsultPost ¶
OrderConsultPost handles GET /orderconsult route
func OrderDelete ¶
OrderDelete handles POST /admin/orders/:id/delete route
func PageDelete ¶
PageDelete handles POST /admin/pages/:id/delete route
func PageUpdate ¶
PageUpdate handles POST /admin/pages/:id/edit route
func ProductCreate ¶
ProductCreate handles POST /admin/new_product route
func ProductDelete ¶
ProductDelete handles POST /admin/products/:id/delete route
func ProductEdit ¶
ProductEdit handles GET /admin/products/:id/edit route
func ProductIndex ¶
ProductIndex handles GET /admin/products route
func ProductUpdate ¶
ProductUpdate handles POST /admin/products/:id/edit route
func SettingCreate ¶
SettingCreate handles POST /admin/new_setting route
func SettingDelete ¶
SettingDelete handles POST /admin/settings/:id/delete route
func SettingEdit ¶
SettingEdit handles GET /admin/settings/:id/edit route
func SettingIndex ¶
SettingIndex handles GET /admin/settings route
func SettingUpdate ¶
SettingUpdate handles POST /admin/settings/:id/edit route
func ShowErrorPage ¶
ShowErrorPage executes error template given its code
func SignInPost ¶
SignInPost handles POST /signin route, authenticates user
func SignUpEnabled ¶
func SignUpEnabled() bool
SignUpEnabled returns true if sign up is enabled by config
func SignUpPost ¶
SignUpPost handles POST /signup route, creates new user
func SlideCreate ¶
SlideCreate handles slide /admin/new_slide route
func SlideDelete ¶
SlideDelete handles slide /admin/slides/:id/delete route
func SlideUpdate ¶
SlideUpdate handles slide /admin/slides/:id/edit route
func UserDelete ¶
UserDelete handles POST /admin/users/:id/delete route
func UserUpdate ¶
UserUpdate handles POST /admin/users/:id/edit route
Types ¶
type Breadcrumb ¶
Breadcrumb represents a breadcrumb