actions

package
v0.0.0-...-d50938c Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: AGPL-3.0 Imports: 15 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 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.

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 BandVenueEventRequestsApprove

func BandVenueEventRequestsApprove(c buffalo.Context) error

BandVenueEventRequestsApprove approves the request for booking

func BandVenueEventRequestsCreate

func BandVenueEventRequestsCreate(c buffalo.Context) error

BandVenueEventRequestsCreate adds a band_venue_event_request to the database

func BandVenueEventRequestsCreateShow

func BandVenueEventRequestsCreateShow(c buffalo.Context) error

BandVenueEventRequestsCreateShow shows the band_venue_event_request create page

func BandVenueEventRequestsDelete

func BandVenueEventRequestsDelete(c buffalo.Context) error

BandVenueEventRequestsDelete default implementation.

func BandVenueEventRequestsDetail

func BandVenueEventRequestsDetail(c buffalo.Context) error

BandVenueEventRequestsDetail default implementation.

func BandVenueEventRequestsEdit

func BandVenueEventRequestsEdit(c buffalo.Context) error

BandVenueEventRequestsEdit default implementation.

func BandVenueEventRequestsIndex

func BandVenueEventRequestsIndex(c buffalo.Context) error

BandVenueEventRequestsIndex default implementation.

func BandsCreate

func BandsCreate(c buffalo.Context) error

BandsCreate adds a band to the database

func BandsCreateShow

func BandsCreateShow(c buffalo.Context) error

BandsCreateShow shows the band create page

func BandsDelete

func BandsDelete(c buffalo.Context) error

BandsDelete default implementation.

func BandsDetail

func BandsDetail(c buffalo.Context) error

BandsDetail default implementation.

func BandsEdit

func BandsEdit(c buffalo.Context) error

BandsEdit default implementation.

func BandsIndex

func BandsIndex(c buffalo.Context) error

BandsIndex default implementation.

func BookersCreate

func BookersCreate(c buffalo.Context) error

BookersCreate adds a booker to the database

func BookersCreateShow

func BookersCreateShow(c buffalo.Context) error

BookersCreateShow shows the booker create page

func BookersDelete

func BookersDelete(c buffalo.Context) error

BookersDelete default implementation.

func BookersDetail

func BookersDetail(c buffalo.Context) error

BookersDetail default implementation.

func BookersEdit

func BookersEdit(c buffalo.Context) error

BookersEdit default implementation.

func BookersIndex

func BookersIndex(c buffalo.Context) error

BookersIndex default implementation.

func HomeHandler

func HomeHandler(c buffalo.Context) error

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

func RouteHandler

func RouteHandler(c buffalo.Context) error

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

func SetCurrentUser

func SetCurrentUser(next buffalo.Handler) buffalo.Handler

SetCurrentUser takes the user id from the session and adds it to the context

func UsersLogin

func UsersLogin(c buffalo.Context) error

UserLogin checks user password

func UsersLoginShow

func UsersLoginShow(c buffalo.Context) error

UsersLoginShow displays a login form

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 VenuesCreate

func VenuesCreate(c buffalo.Context) error

VenuesCreate adds a venue to the database

func VenuesCreateShow

func VenuesCreateShow(c buffalo.Context) error

VenuesCreateShow shows the venue create page

func VenuesDelete

func VenuesDelete(c buffalo.Context) error

VenuesDelete default implementation.

func VenuesDetail

func VenuesDetail(c buffalo.Context) error

VenuesDetail default implementation.

func VenuesEdit

func VenuesEdit(c buffalo.Context) error

VenuesEdit default implementation.

func VenuesIndex

func VenuesIndex(c buffalo.Context) error

VenuesIndex default implementation.

Types

type UsersResource

type UsersResource struct {
	buffalo.Resource
}

UsersResource is the resource for the User model

func (UsersResource) Create

func (v UsersResource) Create(c buffalo.Context) error

Create adds a User to the DB. This function is mapped to the path POST /users

func (UsersResource) Destroy

func (v UsersResource) Destroy(c buffalo.Context) error

Destroy deletes a User from the DB. This function is mapped to the path DELETE /users/id}

func (UsersResource) Edit

func (v UsersResource) Edit(c buffalo.Context) error

Edit renders a edit form for a User. This function is mapped to the path GET /users/{user_id}/edit

func (UsersResource) List

func (v UsersResource) List(c buffalo.Context) error

List gets all Users. This function is mapped to the path GET /users

func (UsersResource) New

New renders the form for creating a new User. This function is mapped to the path GET /users/new

func (UsersResource) Show

func (v UsersResource) Show(c buffalo.Context) error

Show gets the data for one User. This function is mapped to the path GET /users/{user_id}

func (UsersResource) Update

func (v UsersResource) Update(c buffalo.Context) error

Update changes a User in the DB. This function is mapped to the path PUT /users/{user_id}

Jump to

Keyboard shortcuts

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