package
2.0.0+incompatible
Repository: https://github.com/denisbakhtin/ginblog.git
Documentation: pkg.go.dev
# Functions
AdminGet handles GET /admin/ route.
ArchiveGet handles GET /archives/:year/:month route.
AuthRequired grants access to authenticated users, requires SharedData middleware.
CommentCreate handles POST /admin/new_comment route.
CommentDelete handles POST /admin/comments/:id/delete route.
CommentEdit handles GET /admin/comments/:id/edit route.
CommentGet handles GET /comments/:id route.
CommentIndex handles GET /admin/comments route.
CommentNew handles GET /admin/new_comment route.
CommentPublicCreate handles POST /new_comment route.
CommentUpdate handles POST /admin/comments/:id/edit route.
ContextData stores in gin context the common data, such as user info...
CreateXMLSitemap creates xml sitemap for search engines, and saves in public/sitemap folder.
DefaultH returns common to all pages template data.
GetTemplates returns preloaded templates.
HomeGet handles GET / route.
LoadTemplates loads templates from views directory.
LogoutGet handles GET /logout route.
MethodNotAllowed handles gin MethodNotAllowed error.
NotFound handles gin NotFound error.
OauthCallback handles authentication of a user and initiates a session.
OauthGoogleLogin handles the google oauth login procedure.
PageCreate handles POST /admin/new_page route.
PageDelete handles POST /admin/pages/:id/delete route.
PageEdit handles GET /admin/pages/:id/edit route.
PageGet handles GET /pages/:id route.
PageIndex handles GET /admin/pages route.
PageNew handles GET /admin/new_page route.
PageUpdate handles POST /admin/pages/:id/edit route.
PostCreate handles POST /admin/new_post route.
PostDelete handles POST /admin/posts/:id/delete route.
PostEdit handles GET /admin/posts/:id/edit route.
PostGet handles GET /posts/:id route.
PostIndex handles GET /admin/posts route.
PostNew handles GET /admin/new_post route.
PostUpdate handles POST /admin/posts/:id/edit route.
RssGet handles GET /rss route.
ShowErrorPage executes error template given its code.
SignInGet handles GET /signin route.
SignInPost handles POST /signin route, authenticates user.
SignUpGet handles GET /signup route.
SignUpPost handles POST /signup route, creates new user.
TagCreate handles POST /admin/new_tag route.
TagDelete handles POST /admin/tags/:title/delete route.
TagGet handles GET /tags/:title route.
TagIndex handles GET /admin/tags route.
TagNew handles GET /admin/new_tag route.
UploadPost handles POST /upload route.
UserCreate handles POST /admin/new_user route.
UserDelete handles POST /admin/users/:id/delete route.
UserEdit handles GET /admin/users/:id/edit route.
UserIndex handles GET /admin/users route.
UserNew handles GET /admin/new_user route.
UserUpdate handles POST /admin/users/:id/edit route.