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 ProfileShow(c buffalo.Context) error
- func SetCurrentUser(next buffalo.Handler) buffalo.Handler
- type DevicesResource
- func (v DevicesResource) Create(c buffalo.Context) error
- func (v DevicesResource) Destroy(c buffalo.Context) error
- func (v DevicesResource) Edit(c buffalo.Context) error
- func (v DevicesResource) List(c buffalo.Context) error
- func (v DevicesResource) New(c buffalo.Context) error
- func (v DevicesResource) Show(c buffalo.Context) error
- func (v DevicesResource) 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 AuthCallback ¶
func AuthDestroy ¶
func HomeHandler ¶
HomeHandler is a default handler to serve up a home page.
Types ¶
type DevicesResource ¶
DevicesResource is the resource for the Device model
func (DevicesResource) Create ¶
func (v DevicesResource) Create(c buffalo.Context) error
Create adds a Device to the DB. This function is mapped to the path POST /devices
func (DevicesResource) Destroy ¶
func (v DevicesResource) Destroy(c buffalo.Context) error
Destroy deletes a Device from the DB. This function is mapped to the path DELETE /devices/{device_id}
func (DevicesResource) Edit ¶
func (v DevicesResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Device. This function is mapped to the path GET /devices/{device_id}/edit
func (DevicesResource) List ¶
func (v DevicesResource) List(c buffalo.Context) error
List gets all Devices. This function is mapped to the path GET /devices
func (DevicesResource) New ¶
func (v DevicesResource) New(c buffalo.Context) error
New renders the form for creating a new Device. This function is mapped to the path GET /devices/new