Documentation
¶
Index ¶
- Variables
- func AdminRequired(next buffalo.Handler) buffalo.Handler
- func App() *buffalo.App
- func CategoriesCreateGet(c buffalo.Context) error
- func CategoriesCreatePost(c buffalo.Context) error
- func CategoriesDetail(c buffalo.Context) error
- func CategoriesIndex(c buffalo.Context) error
- func GenAvatar(name string) ([]byte, error)
- func HomeHandler(c buffalo.Context) error
- func RepliesCreateGet(c buffalo.Context) error
- func RepliesCreatePost(c buffalo.Context) error
- func RepliesDelete(c buffalo.Context) error
- func RepliesDetail(c buffalo.Context) error
- func RepliesEditGet(c buffalo.Context) error
- func RepliesEditPost(c buffalo.Context) error
- func Search(c buffalo.Context) error
- func SetCurrentForum(next buffalo.Handler) buffalo.Handler
- func SetCurrentUser(next buffalo.Handler) buffalo.Handler
- func TopicsAddSubscriber(c buffalo.Context) error
- func TopicsCreateGet(c buffalo.Context) error
- func TopicsCreatePost(c buffalo.Context) error
- func TopicsDelete(c buffalo.Context) error
- func TopicsDetail(c buffalo.Context) error
- func TopicsEditGet(c buffalo.Context) error
- func TopicsEditPost(c buffalo.Context) error
- func TopicsIndex(c buffalo.Context) error
- func TopicsRemoveSubscriber(c buffalo.Context) error
- func UserRequired(next buffalo.Handler) buffalo.Handler
- func UsersLoginGet(c buffalo.Context) error
- func UsersLoginPost(c buffalo.Context) error
- func UsersLogout(c buffalo.Context) error
- func UsersRegisterGet(c buffalo.Context) error
- func UsersRegisterPost(c buffalo.Context) error
- func UsersSettings(c buffalo.Context) error
- func UsersSettingsAddSubscription(c buffalo.Context) error
- func UsersSettingsRemoveSubscription(c buffalo.Context) error
- func UsersSettingsUpdateAvatar(c buffalo.Context) error
- func UsersSettingsUpdateEmail(c buffalo.Context) error
- func UsersSettingsUpdateName(c buffalo.Context) error
- func UsersSettingsUpdatePassword(c buffalo.Context) error
- func UsersShow(c buffalo.Context) error
- type CategoriesResource
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 AdminRequired ¶
AdminRequired requires a user to be logged in and to be an admin before accessing a route.
func App ¶
App is where all routes and middleware for buffalo should be defined. This is the nerve center of your application.
func CategoriesCreateGet ¶
func CategoriesCreatePost ¶
func CategoriesDetail ¶
CategoriesDetail displays the list of topics in a category
func CategoriesIndex ¶
func HomeHandler ¶
HomeHandler is a default handler to serve up a home page.
func RepliesCreateGet ¶
func RepliesCreatePost ¶
func RepliesDelete ¶
func RepliesDetail ¶
func RepliesEditGet ¶
func RepliesEditPost ¶
func SetCurrentForum ¶
SetCurrentForum attempts to find a forum definition in the db.
func SetCurrentUser ¶
SetCurrentUser attempts to find a user based on the current_user_id in the session. If one is found it is set on the context.
func TopicsAddSubscriber ¶
func TopicsCreateGet ¶
func TopicsCreatePost ¶
func TopicsEditGet ¶
func TopicsEditPost ¶
func TopicsRemoveSubscriber ¶
func UserRequired ¶
UserRequired requires a user to be logged in and to be an admin before accessing a route.
func UsersLoginGet ¶
UsersLoginGet displays a login form
func UsersLogout ¶
UsersLogout clears the session and logs out the user.
func UsersRegisterGet ¶
UserRegisterGet displays a register form
func UsersRegisterPost ¶
UsersRegisterPost adds a User to the DB. This function is mapped to the path POST /accounts/register
func UsersSettings ¶
UserSettings displays the user's informations
func UsersSettingsUpdateName ¶
Types ¶
type CategoriesResource ¶
CategoriesResource is the resource for the Category model