rest

package
v0.0.0-...-c07b606 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string
const Create Action = "create"
const Destroy Action = "destroy"
const Edit Action = "edit"
const Index Action = "index"
const New Action = "new"
const Show Action = "show"
const Update Action = "update"

func (Action) Method

func (action Action) Method() http.Method

type Resource

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

func (Resource) FormFor

func (resource Resource) FormFor(action Action) html.Node

func (Resource) FormForWithWrappedInputs

func (resource Resource) FormForWithWrappedInputs(action Action, wrapper func(html.Node) html.Node) html.Node

func (Resource) Name

func (resource Resource) Name() string

Jump to

Keyboard shortcuts

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