actions

package
v0.0.0-...-c6e3130 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 13 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 HomeHandler

func HomeHandler(c buffalo.Context) error

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

Types

type GifmsResource

type GifmsResource struct {
	buffalo.Resource
}

GifmsResource is the resource for the Gifm model

func (GifmsResource) Create

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

Create adds a Gifm to the DB. This function is mapped to the path POST /gifms

func (GifmsResource) Destroy

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

Destroy deletes a Gifm from the DB. This function is mapped to the path DELETE /gifms/{gifm_id}

func (GifmsResource) Edit

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

Edit renders a edit form for a Gifm. This function is mapped to the path GET /gifms/{gifm_id}/edit

func (GifmsResource) List

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

List gets all Gifms. This function is mapped to the path GET /gifms

func (GifmsResource) New

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

func (GifmsResource) Show

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

Show gets the data for one Gifm. This function is mapped to the path GET /gifms/{gifm_id}

func (GifmsResource) Update

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

Update changes a Gifm in the DB. This function is mapped to the path PUT /gifms/{gifm_id}

Jump to

Keyboard shortcuts

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