Documentation ¶
Overview ¶
Package blog is a personal website and blogging app.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blog ¶
type Blog struct { Debug bool // DocumentRoot is the core static files root; UserRoot masks over it. DocumentRoot string UserRoot string Cache caches.Cacher // contains filtered or unexported fields }
Blog is the root application object that maintains the app configuration and helper objects.
func (*Blog) Configure ¶
func (b *Blog) Configure()
Configure initializes (or reloads) the blog's configuration, and binds the settings in sub-packages.
func (*Blog) ListenAndServe ¶
ListenAndServe begins listening on the given bind address.
func (*Blog) MustLogin ¶
func (b *Blog) MustLogin(w http.ResponseWriter, r *http.Request)
MustLogin handles errors from the LoginRequired middleware by redirecting the user to the login page.
func (*Blog) PageHandler ¶
func (b *Blog) PageHandler(w http.ResponseWriter, r *http.Request)
PageHandler is the catch-all route handler, for serving static web pages.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
blog
Package blog is a web application which lets you host your own web blog, photo albums, wiki, etc.
|
Package blog is a web application which lets you host your own web blog, photo albums, wiki, etc. |
rophako-import
rophako-import: import the JSON DB from the Rophako CMS to the format used by the Go blog.
|
rophako-import: import the JSON DB from the Rophako CMS to the format used by the Go blog. |
Package jsondb implements a flat file JSON database engine.
|
Package jsondb implements a flat file JSON database engine. |
models
|
|
src
|
|
controllers/admin
Package admin provides controllers for admin features of the app.
|
Package admin provides controllers for admin features of the app. |
controllers/authctl
Package authctl implements the authentication controllers.
|
Package authctl implements the authentication controllers. |
controllers/comments
Package comments implements the controllers for the commenting system.
|
Package comments implements the controllers for the commenting system. |
controllers/events
Package events provides controllers for the event system.
|
Package events provides controllers for the event system. |
controllers/posts
Package postctl implements all the web blog features.
|
Package postctl implements all the web blog features. |
controllers/questions
Package questions implements the "Ask Me Anything" feature.
|
Package questions implements the "Ask Me Anything" feature. |
log
Package log implements the common logging engine for the blog.
|
Package log implements the common logging engine for the blog. |
markdown
Package markdown implements a GitHub Flavored Markdown renderer.
|
Package markdown implements a GitHub Flavored Markdown renderer. |
Click to show internal directories.
Click to hide internal directories.