controllers

package
v0.0.0-...-f6db44e Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Items = make(map[string]Item)

Functions

This section is empty.

Types

type Item

type Item struct {
	Name string
}

type ItemController

type ItemController struct {
	*revel.Controller
}

func (ItemController) Create

func (c ItemController) Create(name string) revel.Result

Create a new item

func (ItemController) Delete

func (c ItemController) Delete(name string) revel.Result

Delete an item from the pool

func (ItemController) Get

func (c ItemController) Get(name string) revel.Result

Get an item

func (ItemController) List

func (c ItemController) List() revel.Result

List all items

func (ItemController) Modify

func (c ItemController) Modify(name string) revel.Result

Modify an item by appending an exlamation point to the name

func (ItemController) Update

func (c ItemController) Update(name string) revel.Result

Update an item by appending an exlamation point to the name

Jump to

Keyboard shortcuts

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