actions

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2017 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ENV = defaults.String(os.Getenv("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.

Types

type UsersResource

type UsersResource struct {
	buffalo.BaseResource
}

UsersResource allows CRUD with HTTP against the User model

func (*UsersResource) Create

func (ur *UsersResource) Create(c buffalo.Context) error

Create is a JSON API endpoint that adds a new user

func (*UsersResource) Destroy

func (ur *UsersResource) Destroy(c buffalo.Context) error

Destroy is an API endpoint that deletes a user

func (*UsersResource) Edit

func (ur *UsersResource) Edit(c buffalo.Context) error

Edit renders an html form for editing a user

func (*UsersResource) List

func (ur *UsersResource) List(c buffalo.Context) error

List shows all users in an HTML page

func (*UsersResource) New

func (ur *UsersResource) New(c buffalo.Context) error

New renders a form for adding a new user

func (*UsersResource) Show

func (ur *UsersResource) Show(c buffalo.Context) error

Show renders a target user in an HTML page

func (*UsersResource) Update

func (ur *UsersResource) Update(c buffalo.Context) error

Update is a JSON API endpoint that updates a user

Jump to

Keyboard shortcuts

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