actions

package
v0.0.0-...-cb628ab Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2018 License: MIT Imports: 12 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 DropletsStart

func DropletsStart(c buffalo.Context) error

DropletsStart default implementation.

func DropletsStop

func DropletsStop(c buffalo.Context) error

DropletsStop default implementation.

func HomeHandler

func HomeHandler(c buffalo.Context) error

HomeHandler is a default handler to serve up a home page.

func ShowsStart

func ShowsStart(c buffalo.Context) error

ShowsStart default implementation.

func ShowsStop

func ShowsStop(c buffalo.Context) error

ShowsStop default implementation.

Types

type DropletsResource

type DropletsResource struct {
	buffalo.Resource
}

DropletsResource is the resource for the Droplet model

func (DropletsResource) Create

func (v DropletsResource) Create(c buffalo.Context) error

Create adds a Droplet to the DB. This function is mapped to the path POST /droplets

func (DropletsResource) Destroy

func (v DropletsResource) Destroy(c buffalo.Context) error

Destroy deletes a Droplet from the DB. This function is mapped to the path DELETE /droplets/{droplet_id}

func (DropletsResource) Edit

Edit renders a edit form for a Droplet. This function is mapped to the path GET /droplets/{droplet_id}/edit

func (DropletsResource) List

List gets all Droplets. This function is mapped to the path GET /droplets

func (DropletsResource) New

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

func (DropletsResource) Show

Show gets the data for one Droplet. This function is mapped to the path GET /droplets/{droplet_id}

func (DropletsResource) Update

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

Update changes a Droplet in the DB. This function is mapped to the path PUT /droplets/{droplet_id}

type LinksResource

type LinksResource struct {
	buffalo.Resource
}

LinksResource is the resource for the Link model

func (LinksResource) Create

func (v LinksResource) Create(c buffalo.Context) error

Create adds a Link to the DB. This function is mapped to the path POST /links

func (LinksResource) Destroy

func (v LinksResource) Destroy(c buffalo.Context) error

Destroy deletes a Link from the DB. This function is mapped to the path DELETE /links/{link_id}

func (LinksResource) Edit

func (v LinksResource) Edit(c buffalo.Context) error

Edit renders a edit form for a Link. This function is mapped to the path GET /links/{link_id}/edit

func (LinksResource) List

func (v LinksResource) List(c buffalo.Context) error

List gets all Links. This function is mapped to the path GET /links

func (LinksResource) New

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

func (LinksResource) Show

func (v LinksResource) Show(c buffalo.Context) error

Show gets the data for one Link. This function is mapped to the path GET /links/{link_id}

func (LinksResource) Update

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

Update changes a Link in the DB. This function is mapped to the path PUT /links/{link_id}

type QuotesResource

type QuotesResource struct {
	buffalo.Resource
}

QuotesResource is the resource for the Quote model

func (QuotesResource) Create

func (v QuotesResource) Create(c buffalo.Context) error

Create adds a Quote to the DB. This function is mapped to the path POST /quotes

func (QuotesResource) Destroy

func (v QuotesResource) Destroy(c buffalo.Context) error

Destroy deletes a Quote from the DB. This function is mapped to the path DELETE /quotes/{quote_id}

func (QuotesResource) Edit

func (v QuotesResource) Edit(c buffalo.Context) error

Edit renders a edit form for a Quote. This function is mapped to the path GET /quotes/{quote_id}/edit

func (QuotesResource) List

func (v QuotesResource) List(c buffalo.Context) error

List gets all Quotes. This function is mapped to the path GET /quotes

func (QuotesResource) New

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

func (QuotesResource) Show

func (v QuotesResource) Show(c buffalo.Context) error

Show gets the data for one Quote. This function is mapped to the path GET /quotes/{quote_id}

func (QuotesResource) Update

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

Update changes a Quote in the DB. This function is mapped to the path PUT /quotes/{quote_id}

type ShowsResource

type ShowsResource struct {
	buffalo.Resource
}

ShowsResource is the resource for the Show model

func (ShowsResource) Create

func (v ShowsResource) Create(c buffalo.Context) error

Create adds a Show to the DB. This function is mapped to the path POST /shows

func (ShowsResource) Destroy

func (v ShowsResource) Destroy(c buffalo.Context) error

Destroy deletes a Show from the DB. This function is mapped to the path DELETE /shows/{show_id}

func (ShowsResource) Edit

func (v ShowsResource) Edit(c buffalo.Context) error

Edit renders a edit form for a Show. This function is mapped to the path GET /shows/{show_id}/edit

func (ShowsResource) List

func (v ShowsResource) List(c buffalo.Context) error

List gets all Shows. This function is mapped to the path GET /shows

func (ShowsResource) New

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

func (ShowsResource) Show

func (v ShowsResource) Show(c buffalo.Context) error

Show gets the data for one Show. This function is mapped to the path GET /shows/{show_id}

func (ShowsResource) Update

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

Update changes a Show in the DB. This function is mapped to the path PUT /shows/{show_id}

Jump to

Keyboard shortcuts

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