actions

package
v0.0.0-...-0166530 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 License: MIT Imports: 19 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.

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 ProfileShow

func ProfileShow(c buffalo.Context) error

ProfileShow show the user profile page

func SetCurrentUser

func SetCurrentUser(next buffalo.Handler) buffalo.Handler

Types

type DevicesResource

type DevicesResource struct {
	buffalo.Resource
}

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

Edit renders a edit form for a Device. This function is mapped to the path GET /devices/{device_id}/edit

func (DevicesResource) List

List gets all Devices. This function is mapped to the path GET /devices

func (DevicesResource) New

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

func (DevicesResource) Show

Show gets the data for one Device. This function is mapped to the path GET /devices/{device_id}

func (DevicesResource) Update

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

Update changes a Device in the DB. This function is mapped to the path PUT /devices/{device_id}

Jump to

Keyboard shortcuts

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