Documentation ¶
Index ¶
- Variables
- func AboutHandler(c buffalo.Context) error
- func App() *buffalo.App
- func Log(client paho.Client, message paho.Message)
- func Notification(client paho.Client, message paho.Message)
- 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) Refresh(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".
Functions ¶
func AboutHandler ¶
AboutHandler is a default handler to serve up memory of 18.20.
func App ¶
App is where all routes and middleware for buffalo should be defined. This is the nerve center of your application.
Types ¶
type DevicesResource ¶
DevicesResource manages system devices
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 formular for a device. This function is mapped to the path GET /deivces/{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
func (DevicesResource) Refresh ¶
func (v DevicesResource) Refresh(c buffalo.Context) error
Refresh creates new device token. This function is mapped to the path GET /devices/{device_id}/refresh