Documentation ¶
Index ¶
- Variables
- func App() *buffalo.App
- func BandVenueEventRequestsApprove(c buffalo.Context) error
- func BandVenueEventRequestsCreate(c buffalo.Context) error
- func BandVenueEventRequestsCreateShow(c buffalo.Context) error
- func BandVenueEventRequestsDelete(c buffalo.Context) error
- func BandVenueEventRequestsDetail(c buffalo.Context) error
- func BandVenueEventRequestsEdit(c buffalo.Context) error
- func BandVenueEventRequestsIndex(c buffalo.Context) error
- func BandsCreate(c buffalo.Context) error
- func BandsCreateShow(c buffalo.Context) error
- func BandsDelete(c buffalo.Context) error
- func BandsDetail(c buffalo.Context) error
- func BandsEdit(c buffalo.Context) error
- func BandsIndex(c buffalo.Context) error
- func BookersCreate(c buffalo.Context) error
- func BookersCreateShow(c buffalo.Context) error
- func BookersDelete(c buffalo.Context) error
- func BookersDetail(c buffalo.Context) error
- func BookersEdit(c buffalo.Context) error
- func BookersIndex(c buffalo.Context) error
- func HomeHandler(c buffalo.Context) error
- func RouteHandler(c buffalo.Context) error
- func SetCurrentUser(next buffalo.Handler) buffalo.Handler
- func UsersLogin(c buffalo.Context) error
- func UsersLoginShow(c buffalo.Context) error
- func UsersLogout(c buffalo.Context) error
- func UsersRegisterGet(c buffalo.Context) error
- func UsersRegisterPost(c buffalo.Context) error
- func VenuesCreate(c buffalo.Context) error
- func VenuesCreateShow(c buffalo.Context) error
- func VenuesDelete(c buffalo.Context) error
- func VenuesDetail(c buffalo.Context) error
- func VenuesEdit(c buffalo.Context) error
- func VenuesIndex(c buffalo.Context) error
- type UsersResource
- func (v UsersResource) Create(c buffalo.Context) error
- func (v UsersResource) Destroy(c buffalo.Context) error
- func (v UsersResource) Edit(c buffalo.Context) error
- func (v UsersResource) List(c buffalo.Context) error
- func (v UsersResource) New(c buffalo.Context) error
- func (v UsersResource) Show(c buffalo.Context) error
- func (v UsersResource) Update(c buffalo.Context) error
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 BandVenueEventRequestsApprove ¶
BandVenueEventRequestsApprove approves the request for booking
func BandVenueEventRequestsCreate ¶
BandVenueEventRequestsCreate adds a band_venue_event_request to the database
func BandVenueEventRequestsCreateShow ¶
BandVenueEventRequestsCreateShow shows the band_venue_event_request create page
func BandVenueEventRequestsDelete ¶
BandVenueEventRequestsDelete default implementation.
func BandVenueEventRequestsDetail ¶
BandVenueEventRequestsDetail default implementation.
func BandVenueEventRequestsEdit ¶
BandVenueEventRequestsEdit default implementation.
func BandVenueEventRequestsIndex ¶
BandVenueEventRequestsIndex default implementation.
func BandsCreate ¶
BandsCreate adds a band to the database
func BandsCreateShow ¶
BandsCreateShow shows the band create page
func BookersCreate ¶
BookersCreate adds a booker to the database
func BookersCreateShow ¶
BookersCreateShow shows the booker create page
func BookersDelete ¶
BookersDelete default implementation.
func BookersDetail ¶
BookersDetail default implementation.
func HomeHandler ¶
HomeHandler is a default handler to serve up a home page.
func RouteHandler ¶
HomeHandler is a default handler to serve up a home page.
func SetCurrentUser ¶
SetCurrentUser takes the user id from the session and adds it to the context
func UsersLoginShow ¶
UsersLoginShow 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 VenuesCreate ¶
VenuesCreate adds a venue to the database
func VenuesCreateShow ¶
VenuesCreateShow shows the venue create page
Types ¶
type UsersResource ¶
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 ¶
func (v UsersResource) New(c buffalo.Context) error
New renders the form for creating a new User. This function is mapped to the path GET /users/new