handler

package
v0.7.23 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateAccountHandler

func ActivateAccountHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

ActivateAccountHandler shows the form to activate an account

func ActivateAccountPostHandler

func ActivateAccountPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

ActivateAccountPostHandler activates an user account

func AdminArticleDeleteHandler

func AdminArticleDeleteHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminArticleDeleteHandler returns the action template which asks the user if the article should be removed

func AdminArticleDeletePostHandler

func AdminArticleDeletePostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminArticleDeletePostHandler handles the removing of an article

func AdminArticleEditHandler

func AdminArticleEditHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminArticleEditHandler shows the form for changing an article

func AdminArticleEditPostHandler

func AdminArticleEditPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminArticleEditPostHandler handles the update of an article

func AdminArticleNewHandler

func AdminArticleNewHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminArticleNewHandler returns the form to create a new article

func AdminArticleNewPostHandler

func AdminArticleNewPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminArticleNewPostHandler handles the creation of a new article

func AdminArticlePublishHandler

func AdminArticlePublishHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminArticlePublishHandler returns the action template which asks the user if the article should be published / unpublished

func AdminArticlePublishPostHandler

func AdminArticlePublishPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminArticlePublishPostHandler publish or unpublish an article

func AdminCategoryDeleteHandler

func AdminCategoryDeleteHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminCategoryDeleteHandler returns the action which asks the user if the category should be removed

func AdminCategoryDeletePostHandler

func AdminCategoryDeletePostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminCategoryDeletePostHandler handles the removing of a category

func AdminCategoryEditHandler

func AdminCategoryEditHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminCategoryEditHandler shows the form to change a category

func AdminCategoryEditPostHandler

func AdminCategoryEditPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminCategoryEditPostHandler handles the update of a category

func AdminCategoryNewHandler

func AdminCategoryNewHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminCategoryNewHandler returns the form to create a new category

func AdminCategoryNewPostHandler

func AdminCategoryNewPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminCategoryNewPostHandler handles the creation of a new category

func AdminGetCategoryHandler

func AdminGetCategoryHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminGetCategoryHandler get category by the ID

func AdminGetSiteHandler

func AdminGetSiteHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminGetSiteHandler returns a specific site by the ID

func AdminListArticlesHandler

func AdminListArticlesHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminListArticlesHandler returns all articles, also not yet published articles

func AdminListCategoriesHandler

func AdminListCategoriesHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminListCategoriesHandler returns a list of all categories

func AdminListFilesHandler

func AdminListFilesHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminListFilesHandler returns the template which lists all uploaded files belonging to a user, admins will see all files

func AdminPreviewArticleByIDHandler

func AdminPreviewArticleByIDHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminPreviewArticleByIDHandler returns a specific article, renders it on the front page used for the preview

func AdminProfileHandler

func AdminProfileHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminProfileHandler returns the page for updating the profile of the currently logged-in user

func AdminProfilePostHandler

func AdminProfilePostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminProfilePostHandler handles the updating of the user profile which is currently logged in

func AdminSiteDeleteHandler

func AdminSiteDeleteHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminSiteDeleteHandler returns the action which asks the user if the site should be removed

func AdminSiteDeletePostHandler

func AdminSiteDeletePostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminSiteDeletePostHandler handles the removing of a site

func AdminSiteEditHandler

func AdminSiteEditHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminSiteEditHandler returns the form for changing an existing site

func AdminSiteEditPostHandler

func AdminSiteEditPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminSiteEditPostHandler receives the form values and updates the site; on success the user is redirected with a success message to the site overview

func AdminSiteNewHandler

func AdminSiteNewHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminSiteNewHandler returns the form for adding a new site

func AdminSiteNewPostHandler

func AdminSiteNewPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminSiteNewPostHandler receives the form values and creating the site; on success the user is redirected with a success message to the site overview

func AdminSiteOrderHandler

func AdminSiteOrderHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminSiteOrderHandler moves the site with site ID down or up

func AdminSitePublishHandler

func AdminSitePublishHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminSitePublishHandler returns the action template which asks the user if the site should be published / unpublished

func AdminSitePublishPostHandler

func AdminSitePublishPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminSitePublishPostHandler handles the un-/publishing of a site

func AdminSitesHandler

func AdminSitesHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminSitesHandler returns all sites

func AdminToggleInlineFilePostHandler

func AdminToggleInlineFilePostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminToggleInlineFilePostHandler toggles the flag if the file should be inline or downloaded (toggles Content-Disposition header)

func AdminUploadDeleteHandler

func AdminUploadDeleteHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUploadDeleteHandler returns the action template which asks the user if the file should be removed

func AdminUploadDeletePostHandler

func AdminUploadDeletePostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUploadDeletePostHandler removes a file

func AdminUploadFileHandler

func AdminUploadFileHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUploadFileHandler returns the form for uploading a file

func AdminUploadFilePostHandler

func AdminUploadFilePostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUploadFilePostHandler handles the upload

func AdminUploadJSONFilePostHandler

func AdminUploadJSONFilePostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) (*models.JSONData, error)

AdminUploadJSONFilePostHandler

func AdminUserDeleteHandler

func AdminUserDeleteHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUserDeleteHandler returns the form for removing a user

func AdminUserDeletePostHandler

func AdminUserDeletePostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUserDeletePostHandler handles removing of a user

func AdminUserEditHandler

func AdminUserEditHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUserEditHandler returns the form for editing an user

func AdminUserEditPostHandler

func AdminUserEditPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUserEditPostHandler handles the updating of an user

func AdminUserInviteDeleteHandler

func AdminUserInviteDeleteHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUserInviteDeleteHandler shows the form to remove an user invitation

func AdminUserInviteDeletePostHandler

func AdminUserInviteDeletePostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUserInviteDeletePostHandler handles the removing of an user invitation

func AdminUserInviteNewHandler

func AdminUserInviteNewHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUserInviteNewHandler shows the form to invite an user

func AdminUserInviteNewPostHandler

func AdminUserInviteNewPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUserInviteNewPostHandler handles the invitation, sends an activation mail to the invited user

func AdminUserInviteResendPostHandler

func AdminUserInviteResendPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUserInviteResendPostHandler resends the activation link to the user

func AdminUserNewHandler

func AdminUserNewHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUserNewHandler returns the form for adding new user

func AdminUserNewPostHandler

func AdminUserNewPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUserNewPostHandler handles the creation of new users

func AdminUsersHandler

func AdminUsersHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

AdminUsersHandler returns an overview of the created users

func ForgotPasswordHandler

func ForgotPasswordHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

ForgotPasswordHandler returns the form for the password reset

func ForgotPasswordPostHandler

func ForgotPasswordPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

ForgotPasswordPostHandler handles the processing for the password reset

func GetArticleByIDHandler

func GetArticleByIDHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

GetArticleByIDHandler returns a specific article by the ID

func GetArticleHandler

func GetArticleHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

GetArticleHandler returns a specific article URL Parameters are in the form /year/month/slug e.g. 2016/3/my-

func GetSiteHandler

GetSiteHandler returns the published sites

func IndexArticlesCategoryHandler

func IndexArticlesCategoryHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

IndexArticlesCategoryHandler returns articles for the index page grouped by categories

func IndexArticlesHandler

func IndexArticlesHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

IndexArticlesHandler returns articles for the index page

func KeepAliveSessionHandler

func KeepAliveSessionHandler(ctx *middleware.AppContext, rw http.ResponseWriter, r *http.Request) (*models.JSONData, error)

KeepAliveSessionHandler keeps a session alive.

func ListArticlesCategoryHandler

func ListArticlesCategoryHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

ListArticlesCategoryHandler returns all published articles in a category

func ListArticlesHandler

func ListArticlesHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

ListArticlesHandler returns all published articles

func LoginHandler

LoginHandler shows the login form; if the user is already logged in the user will be redirected to the administration articles page

func LoginPostHandler

func LoginPostHandler(ctx *middleware.AppContext, rw http.ResponseWriter, r *http.Request) *middleware.Template

LoginPostHandler receives the login information from the form; checks the login and starts a session for the user. The session will be stored in a cookie

func LogoutHandler

LogoutHandler logs the user out by removing the cookie and removing the session from the session store

func RSSFeed

RSSFeed returns XML list of published articles for the RSS feed

func ResetPasswordHandler

func ResetPasswordHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

ResetPasswordHandler returns the form to reset the password

func ResetPasswordPostHandler

func ResetPasswordPostHandler(ctx *middleware.AppContext, w http.ResponseWriter, r *http.Request) *middleware.Template

ResetPasswordPostHandler handles a password reset

Types

type FileHandler

type FileHandler struct {
	Context *middleware.AppContext
}

func (FileHandler) FileGetHandler

func (fh FileHandler) FileGetHandler(w http.ResponseWriter, r *http.Request)

FileGetHandler serves the file based on the unique filename

Jump to

Keyboard shortcuts

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