screencasts

package
v0.0.0-...-7289f46 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource(basePath string, r *rndr.Engine, manifest *assets.Manifest) buffalo.Resource

NewResource creates a new Resource for screencasts

Types

type ReadOnlyResource

type ReadOnlyResource struct {
	// contains filtered or unexported fields
}

ReadOnlyResource has the routes in it for read-only

func NewReadOnlyResource

func NewReadOnlyResource(manifest *assets.Manifest) ReadOnlyResource

NewReadOnlyResource creates a new ReadOnly instance

func (ReadOnlyResource) List

List gets all Screencasts This function is mapped to the path: GET /screencasts

func (ReadOnlyResource) Show

Show gets the data for one Screencast. This function is mapped to the path GET /screencasts/{screencast_id}

type Resource

type Resource struct {
	ReadOnlyResource
	resources.Base
	// contains filtered or unexported fields
}

Resource is a complete buffalo.Resource for screencasts

func (Resource) Create

func (r Resource) Create(c buffalo.Context) error

Create adds a Screencast to the DB. This function is mapped to the path POST /screencasts

func (Resource) Destroy

func (r Resource) Destroy(c buffalo.Context) error

Destroy deletes a Screencast from the DB. This function is mapped to the path DELETE /screencasts/{_id}

func (Resource) Edit

func (r Resource) Edit(c buffalo.Context) error

Edit renders a edit form for a Screencast. This function is mapped to the path GET /screencasts/{_id}/edit

func (Resource) New

func (r Resource) New(c buffalo.Context) error

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

func (Resource) Update

func (r Resource) Update(c buffalo.Context) error

Update changes a Screencast in the DB

Jump to

Keyboard shortcuts

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