routes

package
v0.0.0-...-7b0100a Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeuboRouter

type BeuboRouter struct {
	DB            *gorm.DB
	Renderer      *template.BeuboTemplateRenderer
	PluginHandler *plugin.Handler
}

BeuboRouter holds parameters relevant to the router

func (*BeuboRouter) Admin

func (br *BeuboRouter) Admin(w http.ResponseWriter, r *http.Request)

Admin is the default admin route and template

func (*BeuboRouter) AdminPluginEdit

func (br *BeuboRouter) AdminPluginEdit(w http.ResponseWriter, r *http.Request)

AdminPluginEdit is the route for editing a plugin

func (*BeuboRouter) AdminPluginEditPost

func (br *BeuboRouter) AdminPluginEditPost(w http.ResponseWriter, r *http.Request)

AdminPluginEditPost handles editing of plugins

func (*BeuboRouter) AdminSettingAdd

func (br *BeuboRouter) AdminSettingAdd(w http.ResponseWriter, r *http.Request)

AdminSettingAdd is the route for adding a site

func (*BeuboRouter) AdminSettingAddPost

func (br *BeuboRouter) AdminSettingAddPost(w http.ResponseWriter, r *http.Request)

AdminSettingAddPost handles adding of a global setting

func (*BeuboRouter) AdminSettingDelete

func (br *BeuboRouter) AdminSettingDelete(w http.ResponseWriter, r *http.Request)

AdminSettingDelete handles the deletion of a global setting

func (*BeuboRouter) AdminSettingEdit

func (br *BeuboRouter) AdminSettingEdit(w http.ResponseWriter, r *http.Request)

AdminSettingEdit is the route for adding a setting

func (*BeuboRouter) AdminSettingEditPost

func (br *BeuboRouter) AdminSettingEditPost(w http.ResponseWriter, r *http.Request)

AdminSettingEditPost handles editing of a global setting

func (*BeuboRouter) AdminSiteAdd

func (br *BeuboRouter) AdminSiteAdd(w http.ResponseWriter, r *http.Request)

AdminSiteAdd is the route for adding a site

func (*BeuboRouter) AdminSiteAddPost

func (br *BeuboRouter) AdminSiteAddPost(w http.ResponseWriter, r *http.Request)

AdminSiteAddPost handles the post request for adding a site

func (*BeuboRouter) AdminSiteDelete

func (br *BeuboRouter) AdminSiteDelete(w http.ResponseWriter, r *http.Request)

AdminSiteDelete is the route for deleting a site

func (*BeuboRouter) AdminSiteEdit

func (br *BeuboRouter) AdminSiteEdit(w http.ResponseWriter, r *http.Request)

AdminSiteEdit is the route for adding a site

func (*BeuboRouter) AdminSiteEditPost

func (br *BeuboRouter) AdminSiteEditPost(w http.ResponseWriter, r *http.Request)

AdminSiteEditPost handles editing of a site

func (*BeuboRouter) AdminSitePageDelete

func (br *BeuboRouter) AdminSitePageDelete(w http.ResponseWriter, r *http.Request)

AdminSitePageDelete is the route for handling the deletion of a pge

func (*BeuboRouter) AdminSitePageEdit

func (br *BeuboRouter) AdminSitePageEdit(w http.ResponseWriter, r *http.Request)

AdminSitePageEdit is the route for editing a page

func (*BeuboRouter) AdminSitePageEditPost

func (br *BeuboRouter) AdminSitePageEditPost(w http.ResponseWriter, r *http.Request)

AdminSitePageEditPost is the route for handling a post request to edit a page

func (*BeuboRouter) AdminUserAdd

func (br *BeuboRouter) AdminUserAdd(w http.ResponseWriter, r *http.Request)

AdminUserAdd is the route for adding a user

func (*BeuboRouter) AdminUserAddPost

func (br *BeuboRouter) AdminUserAddPost(w http.ResponseWriter, r *http.Request)

AdminUserAddPost handles adding of a user

func (*BeuboRouter) AdminUserDelete

func (br *BeuboRouter) AdminUserDelete(w http.ResponseWriter, r *http.Request)

AdminUserDelete handles the deletion of a user

func (*BeuboRouter) AdminUserEdit

func (br *BeuboRouter) AdminUserEdit(w http.ResponseWriter, r *http.Request)

AdminUserEdit is the route for adding a user

func (*BeuboRouter) AdminUserEditPost

func (br *BeuboRouter) AdminUserEditPost(w http.ResponseWriter, r *http.Request)

AdminUserEditPost handles editing of a user

func (*BeuboRouter) AdminUserRoleAdd

func (br *BeuboRouter) AdminUserRoleAdd(w http.ResponseWriter, r *http.Request)

AdminUserRoleAdd is the route for adding a user role

func (*BeuboRouter) AdminUserRoleAddPost

func (br *BeuboRouter) AdminUserRoleAddPost(w http.ResponseWriter, r *http.Request)

AdminUserRoleAddPost handles adding of a user role

func (*BeuboRouter) AdminUserRoleDelete

func (br *BeuboRouter) AdminUserRoleDelete(w http.ResponseWriter, r *http.Request)

AdminUserRoleDelete handles the deletion of a user role

func (*BeuboRouter) AdminUserRoleEdit

func (br *BeuboRouter) AdminUserRoleEdit(w http.ResponseWriter, r *http.Request)

AdminUserRoleEdit is the route for adding a user role

func (*BeuboRouter) AdminUserRoleEditPost

func (br *BeuboRouter) AdminUserRoleEditPost(w http.ResponseWriter, r *http.Request)

AdminUserRoleEditPost handles editing of a user role

func (*BeuboRouter) AdminUserRoles

func (br *BeuboRouter) AdminUserRoles(w http.ResponseWriter, r *http.Request)

AdminUserRoles is the route for managing user roles

func (*BeuboRouter) Login

func (br *BeuboRouter) Login(w http.ResponseWriter, r *http.Request)

Login is the default login route

func (*BeuboRouter) LoginPost

func (br *BeuboRouter) LoginPost(w http.ResponseWriter, r *http.Request)

LoginPost handles authentication via post request and verifies a username/password via the database

func (*BeuboRouter) Logout

func (br *BeuboRouter) Logout(w http.ResponseWriter, r *http.Request)

Logout handles a GET logout request and removes the user session

func (*BeuboRouter) NotFoundHandler

func (br *BeuboRouter) NotFoundHandler(w http.ResponseWriter, r *http.Request)

NotFoundHandler overrides the default not found handler

func (*BeuboRouter) PageHandler

func (br *BeuboRouter) PageHandler(w http.ResponseWriter, r *http.Request)

PageHandler checks if a page exists for the given slug

func (*BeuboRouter) Plugins

func (br *BeuboRouter) Plugins(w http.ResponseWriter, r *http.Request)

Plugins is the route for loading the admin plugins page

func (*BeuboRouter) Register

func (br *BeuboRouter) Register(w http.ResponseWriter, r *http.Request)

Register renders the default registration page

func (*BeuboRouter) RegisterPost

func (br *BeuboRouter) RegisterPost(w http.ResponseWriter, r *http.Request)

RegisterPost handles a registration request and inserts the user into the database

func (*BeuboRouter) Settings

func (br *BeuboRouter) Settings(w http.ResponseWriter, r *http.Request)

Settings is the route for loading the admin settings page

func (*BeuboRouter) SiteAdmin

func (br *BeuboRouter) SiteAdmin(w http.ResponseWriter, r *http.Request)

SiteAdmin is the main page for the admin area and shows a list of pages

func (*BeuboRouter) SiteAdminPageNew

func (br *BeuboRouter) SiteAdminPageNew(w http.ResponseWriter, r *http.Request)

SiteAdminPageNew is a route for creating new pages

func (*BeuboRouter) SiteAdminPageNewPost

func (br *BeuboRouter) SiteAdminPageNewPost(w http.ResponseWriter, r *http.Request)

SiteAdminPageNewPost is a route for handling the post request for creating new pages

func (*BeuboRouter) Users

func (br *BeuboRouter) Users(w http.ResponseWriter, r *http.Request)

Users is the route for loading the admin users page

Jump to

Keyboard shortcuts

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