Documentation ¶
Index ¶
- Variables
- func App() *buffalo.App
- func AuthCallback(c buffalo.Context) error
- func AuthDestroy(c buffalo.Context) error
- func Authorize(next buffalo.Handler) buffalo.Handler
- func CommentsCreate(c buffalo.Context) error
- func CommentsDelete(c buffalo.Context) error
- func CommentsEditGet(c buffalo.Context) error
- func CommentsEditPost(c buffalo.Context) error
- func HomeHandler(c buffalo.Context) error
- func PostsDetail(c buffalo.Context) error
- func PostsIndex(c buffalo.Context) error
- func SetCurrentUser(next buffalo.Handler) buffalo.Handler
Constants ¶
This section is empty.
Variables ¶
var ENV = envy.Get("GO_ENV", "development")
ENV is used to help switch settings based on where the application is being run. Default is "development".
var T *i18n.Translator
Functions ¶
func App ¶
App is where all routes and middleware for buffalo should be defined. This is the nerve center of your application.
Routing, middleware, groups, etc... are declared TOP -> DOWN. This means if you add a middleware to `app` *after* declaring a group, that group will NOT have that new middleware. The same is true of resource declarations as well.
It also means that routes are checked in the order they are declared. `ServeFiles` is a CATCH-ALL route, so it should always be placed last in the route declarations, as it will prevent routes declared after it to never be called.
func AuthCallback ¶
func AuthDestroy ¶
func CommentsCreate ¶
CommentsCreate default implementation.
func CommentsDelete ¶
func CommentsEditGet ¶
func CommentsEditPost ¶
func HomeHandler ¶
HomeHandler is a default handler to serve up a home page.
Types ¶
This section is empty.