handlers

package
v0.0.0-...-29d43fa Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	InfoLog       *log.Logger
	ErrorLog      *log.Logger
	BoardModel    *models.BoardModel
	ThreadModel   *models.ThreadModel
	ReplyModel    *models.ReplyModel
	FileInfoModel *models.FileInfoModel
	CitationModel *models.CitationModel
	UserModel     *models.UserModel
	BanModel      *models.BanModel
	Templates     embed.FS
	Public        embed.FS
	FormDecoder   *form.Decoder
	FileStore     filestorage.FileStore
	Sessions      *scs.SessionManager
}

func (*Application) AdminOnly

func (app *Application) AdminOnly(h http.Handler) http.Handler

func (*Application) BlockBannedUsers

func (app *Application) BlockBannedUsers(h http.Handler) http.Handler

func (*Application) DeletePost

func (app *Application) DeletePost(w http.ResponseWriter, r *http.Request)

func (*Application) GetAdmin

func (app *Application) GetAdmin(w http.ResponseWriter, r *http.Request)

func (*Application) GetBanCreate

func (app *Application) GetBanCreate(w http.ResponseWriter, r *http.Request)

func (*Application) GetBanDelete

func (app *Application) GetBanDelete(w http.ResponseWriter, r *http.Request)

func (*Application) GetBans

func (app *Application) GetBans(w http.ResponseWriter, r *http.Request)

func (*Application) GetBoard

func (app *Application) GetBoard(w http.ResponseWriter, r *http.Request)

func (*Application) GetBoardCreate

func (app *Application) GetBoardCreate(w http.ResponseWriter, r *http.Request)

func (*Application) GetBoardDelete

func (app *Application) GetBoardDelete(w http.ResponseWriter, r *http.Request)

func (*Application) GetBoardEdit

func (app *Application) GetBoardEdit(w http.ResponseWriter, r *http.Request)

func (*Application) GetDelete

func (app *Application) GetDelete(w http.ResponseWriter, r *http.Request)

func (*Application) GetFile

func (app *Application) GetFile(w http.ResponseWriter, r *http.Request)

func (*Application) GetFileDelete

func (app *Application) GetFileDelete(w http.ResponseWriter, r *http.Request)

func (*Application) GetFileThumbnail

func (app *Application) GetFileThumbnail(w http.ResponseWriter, r *http.Request)

func (*Application) GetIndex

func (app *Application) GetIndex(w http.ResponseWriter, r *http.Request)

func (*Application) GetLogin

func (app *Application) GetLogin(w http.ResponseWriter, r *http.Request)

func (*Application) GetPasswordChange

func (app *Application) GetPasswordChange(w http.ResponseWriter, r *http.Request)

func (*Application) GetPasswordReset

func (app *Application) GetPasswordReset(w http.ResponseWriter, r *http.Request)

func (*Application) GetPasswordResetSuccess

func (app *Application) GetPasswordResetSuccess(w http.ResponseWriter, r *http.Request)

func (*Application) GetPost

func (app *Application) GetPost(w http.ResponseWriter, r *http.Request)

func (*Application) GetPostJson

func (app *Application) GetPostJson(w http.ResponseWriter, r *http.Request)

func (*Application) GetPublic

func (app *Application) GetPublic() http.HandlerFunc

func (*Application) GetRouter

func (app *Application) GetRouter() http.Handler

func (*Application) GetUserCreate

func (app *Application) GetUserCreate(w http.ResponseWriter, r *http.Request)

func (*Application) GetUserCreateSuccess

func (app *Application) GetUserCreateSuccess(w http.ResponseWriter, r *http.Request)

func (*Application) GetUserDelete

func (app *Application) GetUserDelete(w http.ResponseWriter, r *http.Request)

func (*Application) GetUserEdit

func (app *Application) GetUserEdit(w http.ResponseWriter, r *http.Request)

func (*Application) Logging

func (app *Application) Logging(h http.Handler) http.Handler

func (*Application) PostBanCreate

func (app *Application) PostBanCreate(w http.ResponseWriter, r *http.Request)

func (*Application) PostBanDelete

func (app *Application) PostBanDelete(w http.ResponseWriter, r *http.Request)

func (*Application) PostBoard

func (app *Application) PostBoard(w http.ResponseWriter, r *http.Request)

func (*Application) PostBoardCreate

func (app *Application) PostBoardCreate(w http.ResponseWriter, r *http.Request)

func (*Application) PostBoardDelete

func (app *Application) PostBoardDelete(w http.ResponseWriter, r *http.Request)

func (*Application) PostBoardEdit

func (app *Application) PostBoardEdit(w http.ResponseWriter, r *http.Request)

func (*Application) PostDelete

func (app *Application) PostDelete(w http.ResponseWriter, r *http.Request)

func (*Application) PostFileDelete

func (app *Application) PostFileDelete(w http.ResponseWriter, r *http.Request)

func (*Application) PostLogin

func (app *Application) PostLogin(w http.ResponseWriter, r *http.Request)

func (*Application) PostLogout

func (app *Application) PostLogout(w http.ResponseWriter, r *http.Request)

func (*Application) PostPasswordChange

func (app *Application) PostPasswordChange(w http.ResponseWriter, r *http.Request)

func (*Application) PostPasswordReset

func (app *Application) PostPasswordReset(w http.ResponseWriter, r *http.Request)

func (*Application) PostThread

func (app *Application) PostThread(w http.ResponseWriter, r *http.Request)

func (*Application) PostUserCreate

func (app *Application) PostUserCreate(w http.ResponseWriter, r *http.Request)

func (*Application) PostUserDelete

func (app *Application) PostUserDelete(w http.ResponseWriter, r *http.Request)

func (*Application) PostUserEdit

func (app *Application) PostUserEdit(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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