Documentation ¶
Index ¶
- Variables
- func App() *buffalo.App
- func HomeHandler(c buffalo.Context) error
- type GifmsResource
- func (v GifmsResource) Create(c buffalo.Context) error
- func (v GifmsResource) Destroy(c buffalo.Context) error
- func (v GifmsResource) Edit(c buffalo.Context) error
- func (v GifmsResource) List(c buffalo.Context) error
- func (v GifmsResource) New(c buffalo.Context) error
- func (v GifmsResource) Show(c buffalo.Context) error
- func (v GifmsResource) 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 HomeHandler ¶
HomeHandler is a default handler to serve up a home page.
Types ¶
type GifmsResource ¶
GifmsResource is the resource for the Gifm model
func (GifmsResource) Create ¶
func (v GifmsResource) Create(c buffalo.Context) error
Create adds a Gifm to the DB. This function is mapped to the path POST /gifms
func (GifmsResource) Destroy ¶
func (v GifmsResource) Destroy(c buffalo.Context) error
Destroy deletes a Gifm from the DB. This function is mapped to the path DELETE /gifms/{gifm_id}
func (GifmsResource) Edit ¶
func (v GifmsResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Gifm. This function is mapped to the path GET /gifms/{gifm_id}/edit
func (GifmsResource) List ¶
func (v GifmsResource) List(c buffalo.Context) error
List gets all Gifms. This function is mapped to the path GET /gifms
func (GifmsResource) New ¶
func (v GifmsResource) New(c buffalo.Context) error
New renders the form for creating a new Gifm. This function is mapped to the path GET /gifms/new