Documentation ¶
Index ¶
- func AdminGet(c *gin.Context)
- func ArchiveGet(c *gin.Context)
- func AuthRequired() gin.HandlerFunc
- func CommentCreate(c *gin.Context)
- func CommentDelete(c *gin.Context)
- func CommentEdit(c *gin.Context)
- func CommentGet(c *gin.Context)
- func CommentIndex(c *gin.Context)
- func CommentNew(c *gin.Context)
- func CommentPublicCreate(c *gin.Context)
- func CommentUpdate(c *gin.Context)
- func ContextData() gin.HandlerFunc
- func CreateXMLSitemap()
- func DefaultH(c *gin.Context) gin.H
- func GetTemplates() *template.Template
- func HomeGet(c *gin.Context)
- func LoadTemplates()
- func LogoutGet(c *gin.Context)
- func MethodNotAllowed(c *gin.Context)
- func NotFound(c *gin.Context)
- func OauthCallback(c *gin.Context)
- func OauthGoogleLogin(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 PostCreate(c *gin.Context)
- func PostDelete(c *gin.Context)
- func PostEdit(c *gin.Context)
- func PostGet(c *gin.Context)
- func PostIndex(c *gin.Context)
- func PostNew(c *gin.Context)
- func PostUpdate(c *gin.Context)
- func RssGet(c *gin.Context)
- func ShowErrorPage(c *gin.Context, code int, err error)
- func SignInGet(c *gin.Context)
- func SignInPost(c *gin.Context)
- func SignUpGet(c *gin.Context)
- func SignUpPost(c *gin.Context)
- func TagCreate(c *gin.Context)
- func TagDelete(c *gin.Context)
- func TagGet(c *gin.Context)
- func TagIndex(c *gin.Context)
- func TagNew(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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveGet ¶
ArchiveGet handles GET /archives/:year/:month route
func AuthRequired ¶
func AuthRequired() gin.HandlerFunc
AuthRequired grants access to authenticated users, requires SharedData middleware
func CommentCreate ¶
CommentCreate handles POST /admin/new_comment route
func CommentDelete ¶
CommentDelete handles POST /admin/comments/:id/delete route
func CommentEdit ¶
CommentEdit handles GET /admin/comments/:id/edit route
func CommentIndex ¶
CommentIndex handles GET /admin/comments route
func CommentPublicCreate ¶
CommentPublicCreate handles POST /new_comment route
func CommentUpdate ¶
CommentUpdate handles POST /admin/comments/: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 MethodNotAllowed ¶
MethodNotAllowed handles gin MethodNotAllowed error
func OauthCallback ¶
OauthCallback handles authentication of a user and initiates a session.
func OauthGoogleLogin ¶
OauthGoogleLogin handles the google oauth login procedure.
func PageDelete ¶
PageDelete handles POST /admin/pages/:id/delete route
func PageUpdate ¶
PageUpdate handles POST /admin/pages/:id/edit route
func PostDelete ¶
PostDelete handles POST /admin/posts/:id/delete route
func PostUpdate ¶
PostUpdate handles POST /admin/posts/:id/edit route
func ShowErrorPage ¶
ShowErrorPage executes error template given its code
func SignInPost ¶
SignInPost handles POST /signin route, authenticates user
func SignUpPost ¶
SignUpPost handles POST /signup route, creates new user
func UserDelete ¶
UserDelete handles POST /admin/users/:id/delete route
func UserUpdate ¶
UserUpdate handles POST /admin/users/:id/edit route
Types ¶
This section is empty.