actions

package
v0.0.0-...-0ed7ab7 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: MIT Imports: 24 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 AuthCallback

func AuthCallback(c buffalo.Context) error

func AuthDestroy

func AuthDestroy(c buffalo.Context) error

func Authorize

func Authorize(next buffalo.Handler) buffalo.Handler

func HomeHandler

func HomeHandler(c buffalo.Context) error

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

func IsAuthorizedDomain

func IsAuthorizedDomain(userDomain string) bool

func SetCurrentUser

func SetCurrentUser(next buffalo.Handler) buffalo.Handler

Types

type AbstractsResource

type AbstractsResource struct {
	buffalo.Resource
}

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

Edit renders a edit form for a Abstract. This function is mapped to the path GET /abstracts/{abstract_id}/edit

func (AbstractsResource) List

List gets all Abstracts. This function is mapped to the path GET /abstracts

func (AbstractsResource) New

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

func (AbstractsResource) Show

Show gets the data for one Abstract. This function is mapped to the path GET /abstracts/{abstract_id}

func (AbstractsResource) Update

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

Update changes a Abstract in the DB. This function is mapped to the path PUT /abstracts/{abstract_id}

type DutoniansResource

type DutoniansResource struct {
	buffalo.Resource
}

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

Edit renders a edit form for a Dutonian. This function is mapped to the path GET /dutonians/{dutonian_id}/edit

func (DutoniansResource) List

List gets all Dutonians. This function is mapped to the path GET /dutonians

func (DutoniansResource) New

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

func (DutoniansResource) Show

Show gets the data for one Dutonian. This function is mapped to the path GET /dutonians/{dutonian_id}

func (DutoniansResource) Update

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

Update changes a Dutonian in the DB. This function is mapped to the path PUT /dutonians/{dutonian_id}

type EventsResource

type EventsResource struct {
	buffalo.Resource
}

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

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

func (EventsResource) Show

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

Show gets the data for one Event. This function is mapped to the path GET /events/{event_id}

func (EventsResource) Update

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

Update changes a Event in the DB. This function is mapped to the path PUT /events/{event_id}

type LinksResource

type LinksResource struct {
	buffalo.Resource
}

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

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

func (LinksResource) Show

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

Show gets the data for one Link. This function is mapped to the path GET /links/{link_id}

func (LinksResource) Update

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

Update changes a Link in the DB. This function is mapped to the path PUT /links/{link_id}

type ProposalsResource

type ProposalsResource struct {
	buffalo.Resource
}

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

Edit renders a edit form for a Proposal. This function is mapped to the path GET /proposals/{proposal_id}/edit

func (ProposalsResource) List

List gets all Proposals. This function is mapped to the path GET /proposals

func (ProposalsResource) New

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

func (ProposalsResource) Show

Show gets the data for one Proposal. This function is mapped to the path GET /proposals/{proposal_id}

func (ProposalsResource) Update

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

Update changes a Proposal in the DB. This function is mapped to the path PUT /proposals/{proposal_id}

type SponsorshipsResource

type SponsorshipsResource struct {
	buffalo.Resource
}

SponsorshipsResource is the resource for the Sponsorship model

func (SponsorshipsResource) Create

Create adds a Sponsorship to the DB. This function is mapped to the path POST /sponsorships

func (SponsorshipsResource) Destroy

Destroy deletes a Sponsorship from the DB. This function is mapped to the path DELETE /sponsorships/{sponsorship_id}

func (SponsorshipsResource) Edit

Edit renders a edit form for a Sponsorship. This function is mapped to the path GET /sponsorships/{sponsorship_id}/edit

func (SponsorshipsResource) List

List gets all Sponsorships. This function is mapped to the path GET /sponsorships

func (SponsorshipsResource) New

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

func (SponsorshipsResource) Show

Show gets the data for one Sponsorship. This function is mapped to the path GET /sponsorships/{sponsorship_id}

func (SponsorshipsResource) Update

Update changes a Sponsorship in the DB. This function is mapped to the path PUT /sponsorships/{sponsorship_id}

Jump to

Keyboard shortcuts

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