Documentation ¶
Index ¶
- Variables
- func App() *buffalo.App
- func DropletsStart(c buffalo.Context) error
- func DropletsStop(c buffalo.Context) error
- func HomeHandler(c buffalo.Context) error
- func ShowsStart(c buffalo.Context) error
- func ShowsStop(c buffalo.Context) error
- type DropletsResource
- func (v DropletsResource) Create(c buffalo.Context) error
- func (v DropletsResource) Destroy(c buffalo.Context) error
- func (v DropletsResource) Edit(c buffalo.Context) error
- func (v DropletsResource) List(c buffalo.Context) error
- func (v DropletsResource) New(c buffalo.Context) error
- func (v DropletsResource) Show(c buffalo.Context) error
- func (v DropletsResource) 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 QuotesResource
- func (v QuotesResource) Create(c buffalo.Context) error
- func (v QuotesResource) Destroy(c buffalo.Context) error
- func (v QuotesResource) Edit(c buffalo.Context) error
- func (v QuotesResource) List(c buffalo.Context) error
- func (v QuotesResource) New(c buffalo.Context) error
- func (v QuotesResource) Show(c buffalo.Context) error
- func (v QuotesResource) Update(c buffalo.Context) error
- type ShowsResource
- func (v ShowsResource) Create(c buffalo.Context) error
- func (v ShowsResource) Destroy(c buffalo.Context) error
- func (v ShowsResource) Edit(c buffalo.Context) error
- func (v ShowsResource) List(c buffalo.Context) error
- func (v ShowsResource) New(c buffalo.Context) error
- func (v ShowsResource) Show(c buffalo.Context) error
- func (v ShowsResource) 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.
func DropletsStart ¶
DropletsStart default implementation.
func HomeHandler ¶
HomeHandler is a default handler to serve up a home page.
Types ¶
type DropletsResource ¶
DropletsResource is the resource for the Droplet model
func (DropletsResource) Create ¶
func (v DropletsResource) Create(c buffalo.Context) error
Create adds a Droplet to the DB. This function is mapped to the path POST /droplets
func (DropletsResource) Destroy ¶
func (v DropletsResource) Destroy(c buffalo.Context) error
Destroy deletes a Droplet from the DB. This function is mapped to the path DELETE /droplets/{droplet_id}
func (DropletsResource) Edit ¶
func (v DropletsResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Droplet. This function is mapped to the path GET /droplets/{droplet_id}/edit
func (DropletsResource) List ¶
func (v DropletsResource) List(c buffalo.Context) error
List gets all Droplets. This function is mapped to the path GET /droplets
func (DropletsResource) New ¶
func (v DropletsResource) New(c buffalo.Context) error
New renders the form for creating a new Droplet. This function is mapped to the path GET /droplets/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 QuotesResource ¶
QuotesResource is the resource for the Quote model
func (QuotesResource) Create ¶
func (v QuotesResource) Create(c buffalo.Context) error
Create adds a Quote to the DB. This function is mapped to the path POST /quotes
func (QuotesResource) Destroy ¶
func (v QuotesResource) Destroy(c buffalo.Context) error
Destroy deletes a Quote from the DB. This function is mapped to the path DELETE /quotes/{quote_id}
func (QuotesResource) Edit ¶
func (v QuotesResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Quote. This function is mapped to the path GET /quotes/{quote_id}/edit
func (QuotesResource) List ¶
func (v QuotesResource) List(c buffalo.Context) error
List gets all Quotes. This function is mapped to the path GET /quotes
func (QuotesResource) New ¶
func (v QuotesResource) New(c buffalo.Context) error
New renders the form for creating a new Quote. This function is mapped to the path GET /quotes/new
type ShowsResource ¶
ShowsResource is the resource for the Show model
func (ShowsResource) Create ¶
func (v ShowsResource) Create(c buffalo.Context) error
Create adds a Show to the DB. This function is mapped to the path POST /shows
func (ShowsResource) Destroy ¶
func (v ShowsResource) Destroy(c buffalo.Context) error
Destroy deletes a Show from the DB. This function is mapped to the path DELETE /shows/{show_id}
func (ShowsResource) Edit ¶
func (v ShowsResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Show. This function is mapped to the path GET /shows/{show_id}/edit
func (ShowsResource) List ¶
func (v ShowsResource) List(c buffalo.Context) error
List gets all Shows. This function is mapped to the path GET /shows
func (ShowsResource) New ¶
func (v ShowsResource) New(c buffalo.Context) error
New renders the form for creating a new Show. This function is mapped to the path GET /shows/new