actions

package
v0.0.0-...-9d17cf8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2020 License: BSD-3-Clause Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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".

Functions

func AdminRequired

func AdminRequired(next buffalo.Handler) buffalo.Handler

AdminRequired requires a user to be logged in and to be an admin before accessing a route.

func App

func App() *buffalo.App

App is where all routes and middleware for buffalo should be defined. This is the nerve center of your application.

func CategoriesCreateGet

func CategoriesCreateGet(c buffalo.Context) error

func CategoriesCreatePost

func CategoriesCreatePost(c buffalo.Context) error

func CategoriesDetail

func CategoriesDetail(c buffalo.Context) error

CategoriesDetail displays the list of topics in a category

func CategoriesIndex

func CategoriesIndex(c buffalo.Context) error

func GenAvatar

func GenAvatar(name string) ([]byte, error)

func HomeHandler

func HomeHandler(c buffalo.Context) error

HomeHandler is a default handler to serve up a home page.

func RepliesCreateGet

func RepliesCreateGet(c buffalo.Context) error

func RepliesCreatePost

func RepliesCreatePost(c buffalo.Context) error

func RepliesDelete

func RepliesDelete(c buffalo.Context) error

func RepliesDetail

func RepliesDetail(c buffalo.Context) error

func RepliesEditGet

func RepliesEditGet(c buffalo.Context) error

func RepliesEditPost

func RepliesEditPost(c buffalo.Context) error
func Search(c buffalo.Context) error

func SetCurrentForum

func SetCurrentForum(next buffalo.Handler) buffalo.Handler

SetCurrentForum attempts to find a forum definition in the db.

func SetCurrentUser

func SetCurrentUser(next buffalo.Handler) buffalo.Handler

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 TopicsAddSubscriber(c buffalo.Context) error

func TopicsCreateGet

func TopicsCreateGet(c buffalo.Context) error

func TopicsCreatePost

func TopicsCreatePost(c buffalo.Context) error

func TopicsDelete

func TopicsDelete(c buffalo.Context) error

TopicsDelete default implementation.

func TopicsDetail

func TopicsDetail(c buffalo.Context) error

TopicsDetail default implementation.

func TopicsEditGet

func TopicsEditGet(c buffalo.Context) error

func TopicsEditPost

func TopicsEditPost(c buffalo.Context) error

func TopicsIndex

func TopicsIndex(c buffalo.Context) error

TopicsIndex default implementation.

func TopicsRemoveSubscriber

func TopicsRemoveSubscriber(c buffalo.Context) error

func UserRequired

func UserRequired(next buffalo.Handler) buffalo.Handler

UserRequired requires a user to be logged in and to be an admin before accessing a route.

func UsersLoginGet

func UsersLoginGet(c buffalo.Context) error

UsersLoginGet displays a login form

func UsersLoginPost

func UsersLoginPost(c buffalo.Context) error

UsersLoginPost logs in a user.

func UsersLogout

func UsersLogout(c buffalo.Context) error

UsersLogout clears the session and logs out the user.

func UsersRegisterGet

func UsersRegisterGet(c buffalo.Context) error

UserRegisterGet displays a register form

func UsersRegisterPost

func UsersRegisterPost(c buffalo.Context) error

UsersRegisterPost adds a User to the DB. This function is mapped to the path POST /accounts/register

func UsersSettings

func UsersSettings(c buffalo.Context) error

UserSettings displays the user's informations

func UsersSettingsAddSubscription

func UsersSettingsAddSubscription(c buffalo.Context) error

func UsersSettingsRemoveSubscription

func UsersSettingsRemoveSubscription(c buffalo.Context) error

func UsersSettingsUpdateAvatar

func UsersSettingsUpdateAvatar(c buffalo.Context) error

func UsersSettingsUpdateEmail

func UsersSettingsUpdateEmail(c buffalo.Context) error

func UsersSettingsUpdateName

func UsersSettingsUpdateName(c buffalo.Context) error

func UsersSettingsUpdatePassword

func UsersSettingsUpdatePassword(c buffalo.Context) error

func UsersShow

func UsersShow(c buffalo.Context) error

Types

type CategoriesResource

type CategoriesResource struct {
	buffalo.Resource
}

CategoriesResource is the resource for the Category model

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL