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 HomeHandler(c buffalo.Context) error
- func IsAuthorizedDomain(userDomain string) bool
- func SetCurrentUser(next buffalo.Handler) buffalo.Handler
- type AbstractsResource
- func (v AbstractsResource) Create(c buffalo.Context) error
- func (v AbstractsResource) Destroy(c buffalo.Context) error
- func (v AbstractsResource) Edit(c buffalo.Context) error
- func (v AbstractsResource) List(c buffalo.Context) error
- func (v AbstractsResource) New(c buffalo.Context) error
- func (v AbstractsResource) Show(c buffalo.Context) error
- func (v AbstractsResource) Update(c buffalo.Context) error
- type DutoniansResource
- func (v DutoniansResource) Create(c buffalo.Context) error
- func (v DutoniansResource) Destroy(c buffalo.Context) error
- func (v DutoniansResource) Edit(c buffalo.Context) error
- func (v DutoniansResource) List(c buffalo.Context) error
- func (v DutoniansResource) New(c buffalo.Context) error
- func (v DutoniansResource) Show(c buffalo.Context) error
- func (v DutoniansResource) Update(c buffalo.Context) error
- type EventsResource
- func (v EventsResource) Create(c buffalo.Context) error
- func (v EventsResource) Destroy(c buffalo.Context) error
- func (v EventsResource) Edit(c buffalo.Context) error
- func (v EventsResource) List(c buffalo.Context) error
- func (v EventsResource) New(c buffalo.Context) error
- func (v EventsResource) Show(c buffalo.Context) error
- func (v EventsResource) Update(c buffalo.Context) error
- type LinksResource
- func (v LinksResource) Create(c buffalo.Context) error
- func (v LinksResource) Destroy(c buffalo.Context) error
- func (v LinksResource) Edit(c buffalo.Context) error
- func (v LinksResource) List(c buffalo.Context) error
- func (v LinksResource) New(c buffalo.Context) error
- func (v LinksResource) Show(c buffalo.Context) error
- func (v LinksResource) Update(c buffalo.Context) error
- type ProposalsResource
- func (v ProposalsResource) Create(c buffalo.Context) error
- func (v ProposalsResource) Destroy(c buffalo.Context) error
- func (v ProposalsResource) Edit(c buffalo.Context) error
- func (v ProposalsResource) List(c buffalo.Context) error
- func (v ProposalsResource) New(c buffalo.Context) error
- func (v ProposalsResource) Show(c buffalo.Context) error
- func (v ProposalsResource) Update(c buffalo.Context) error
- type SponsorshipsResource
- func (v SponsorshipsResource) Create(c buffalo.Context) error
- func (v SponsorshipsResource) Destroy(c buffalo.Context) error
- func (v SponsorshipsResource) Edit(c buffalo.Context) error
- func (v SponsorshipsResource) List(c buffalo.Context) error
- func (v SponsorshipsResource) New(c buffalo.Context) error
- func (v SponsorshipsResource) Show(c buffalo.Context) error
- func (v SponsorshipsResource) 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 AuthCallback ¶
func AuthDestroy ¶
func HomeHandler ¶
HomeHandler is a default handler to serve up a home page.
func IsAuthorizedDomain ¶
Types ¶
type AbstractsResource ¶
AbstractsResource is the resource for the Abstract model
func (AbstractsResource) Create ¶
func (v AbstractsResource) Create(c buffalo.Context) error
Create adds a Abstract to the DB. This function is mapped to the path POST /abstracts
func (AbstractsResource) Destroy ¶
func (v AbstractsResource) Destroy(c buffalo.Context) error
Destroy deletes a Abstract from the DB. This function is mapped to the path DELETE /abstracts/{abstract_id}
func (AbstractsResource) Edit ¶
func (v AbstractsResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Abstract. This function is mapped to the path GET /abstracts/{abstract_id}/edit
func (AbstractsResource) List ¶
func (v AbstractsResource) List(c buffalo.Context) error
List gets all Abstracts. This function is mapped to the path GET /abstracts
func (AbstractsResource) New ¶
func (v AbstractsResource) New(c buffalo.Context) error
New renders the form for creating a new Abstract. This function is mapped to the path GET /abstracts/new
type DutoniansResource ¶
DutoniansResource is the resource for the Dutonian model
func (DutoniansResource) Create ¶
func (v DutoniansResource) Create(c buffalo.Context) error
Create adds a Dutonian to the DB. This function is mapped to the path POST /dutonians
func (DutoniansResource) Destroy ¶
func (v DutoniansResource) Destroy(c buffalo.Context) error
Destroy deletes a Dutonian from the DB. This function is mapped to the path DELETE /dutonians/{dutonian_id}
func (DutoniansResource) Edit ¶
func (v DutoniansResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Dutonian. This function is mapped to the path GET /dutonians/{dutonian_id}/edit
func (DutoniansResource) List ¶
func (v DutoniansResource) List(c buffalo.Context) error
List gets all Dutonians. This function is mapped to the path GET /dutonians
func (DutoniansResource) New ¶
func (v DutoniansResource) New(c buffalo.Context) error
New renders the form for creating a new Dutonian. This function is mapped to the path GET /dutonians/new
type EventsResource ¶
EventsResource is the resource for the Event model
func (EventsResource) Create ¶
func (v EventsResource) Create(c buffalo.Context) error
Create adds a Event to the DB. This function is mapped to the path POST /events
func (EventsResource) Destroy ¶
func (v EventsResource) Destroy(c buffalo.Context) error
Destroy deletes a Event from the DB. This function is mapped to the path DELETE /events/{event_id}
func (EventsResource) Edit ¶
func (v EventsResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Event. This function is mapped to the path GET /events/{event_id}/edit
func (EventsResource) List ¶
func (v EventsResource) List(c buffalo.Context) error
List gets all Events. This function is mapped to the path GET /events
func (EventsResource) New ¶
func (v EventsResource) New(c buffalo.Context) error
New renders the form for creating a new Event. This function is mapped to the path GET /events/new
type LinksResource ¶
LinksResource is the resource for the Link model
func (LinksResource) Create ¶
func (v LinksResource) Create(c buffalo.Context) error
Create adds a Link to the DB. This function is mapped to the path POST /links
func (LinksResource) Destroy ¶
func (v LinksResource) Destroy(c buffalo.Context) error
Destroy deletes a Link from the DB. This function is mapped to the path DELETE /links/{link_id}
func (LinksResource) Edit ¶
func (v LinksResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Link. This function is mapped to the path GET /links/{link_id}/edit
func (LinksResource) List ¶
func (v LinksResource) List(c buffalo.Context) error
List gets all Links. This function is mapped to the path GET /links
func (LinksResource) New ¶
func (v LinksResource) New(c buffalo.Context) error
New renders the form for creating a new Link. This function is mapped to the path GET /links/new
type ProposalsResource ¶
ProposalsResource is the resource for the Proposal model
func (ProposalsResource) Create ¶
func (v ProposalsResource) Create(c buffalo.Context) error
Create adds a Proposal to the DB. This function is mapped to the path POST /proposals
func (ProposalsResource) Destroy ¶
func (v ProposalsResource) Destroy(c buffalo.Context) error
Destroy deletes a Proposal from the DB. This function is mapped to the path DELETE /proposals/{proposal_id}
func (ProposalsResource) Edit ¶
func (v ProposalsResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Proposal. This function is mapped to the path GET /proposals/{proposal_id}/edit
func (ProposalsResource) List ¶
func (v ProposalsResource) List(c buffalo.Context) error
List gets all Proposals. This function is mapped to the path GET /proposals
func (ProposalsResource) New ¶
func (v ProposalsResource) New(c buffalo.Context) error
New renders the form for creating a new Proposal. This function is mapped to the path GET /proposals/new
type SponsorshipsResource ¶
SponsorshipsResource is the resource for the Sponsorship model
func (SponsorshipsResource) Create ¶
func (v SponsorshipsResource) Create(c buffalo.Context) error
Create adds a Sponsorship to the DB. This function is mapped to the path POST /sponsorships
func (SponsorshipsResource) Destroy ¶
func (v SponsorshipsResource) Destroy(c buffalo.Context) error
Destroy deletes a Sponsorship from the DB. This function is mapped to the path DELETE /sponsorships/{sponsorship_id}
func (SponsorshipsResource) Edit ¶
func (v SponsorshipsResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Sponsorship. This function is mapped to the path GET /sponsorships/{sponsorship_id}/edit
func (SponsorshipsResource) List ¶
func (v SponsorshipsResource) List(c buffalo.Context) error
List gets all Sponsorships. This function is mapped to the path GET /sponsorships
func (SponsorshipsResource) New ¶
func (v SponsorshipsResource) New(c buffalo.Context) error
New renders the form for creating a new Sponsorship. This function is mapped to the path GET /sponsorships/new