controllers

package
v0.0.0-...-c8feaad Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	LyceumController
}

App controller for general application resources.

func (App) Index

func (c App) Index() revel.Result

Index renders the main "home" page for the application.

func (App) Search

func (c App) Search(q string) revel.Result

Search will perform an application-wide search and display the results.

type ArtifactAPI

type ArtifactAPI struct {
	LyceumController
}

ArtifactAPI is the controller for the artifact API resource.

func (ArtifactAPI) List

func (c ArtifactAPI) List() revel.Result

List will retrieve all artifact resources.

type Item

type Item struct {
	LyceumController
}

Item controller for item resources.

func (Item) Detail

func (c Item) Detail(id string) revel.Result

Detail will show an existing item.

func (Item) List

func (c Item) List() revel.Result

List will retrieve all item resources.

func (Item) Read

func (c Item) Read(id string) revel.Result

Read will download the item with the given id.

func (Item) Upload

func (c Item) Upload(data []byte) revel.Result

Upload will create a new item with its associated artifact.

type ItemAPI

type ItemAPI struct {
	LyceumController
}

ItemAPI is the controller for the item API resource.

func (ItemAPI) Create

func (c ItemAPI) Create() revel.Result

Create will add a new item resource.

func (ItemAPI) Delete

func (c ItemAPI) Delete(id string) revel.Result

Delete will remove the item resource with the given id.

func (ItemAPI) Get

func (c ItemAPI) Get(id string) revel.Result

Get will retrieve the item resource with the given id.

func (ItemAPI) List

func (c ItemAPI) List() revel.Result

List will retrieve all item resources.

func (ItemAPI) Update

func (c ItemAPI) Update(id string) revel.Result

Update will update the item resource with the given id.

type Library

type Library struct {
	LyceumController
}

Library controller for library resources.

func (Library) Create

func (c Library) Create() revel.Result

Create will save a new library.

func (Library) Detail

func (c Library) Detail(id string) revel.Result

Detail will show an existing library.

func (Library) List

func (c Library) List() revel.Result

List will retrieve all library resources.

type LibraryAPI

type LibraryAPI struct {
	LyceumController
}

LibraryAPI is the controller for the library API resource.

func (LibraryAPI) Create

func (c LibraryAPI) Create() revel.Result

Create will add a new library resource.

func (LibraryAPI) Delete

func (c LibraryAPI) Delete(id string) revel.Result

Delete will remove the library resource with the given id.

func (LibraryAPI) Get

func (c LibraryAPI) Get(id string) revel.Result

Get will retrieve the library resource with the given id.

func (LibraryAPI) List

func (c LibraryAPI) List() revel.Result

List will retrieve all library resources.

func (LibraryAPI) Update

func (c LibraryAPI) Update(id string) revel.Result

Update will update the library resource with the given id.

type LyceumController

type LyceumController struct {
	*revel.Controller
}

LyceumController adds application specific properties.

func (LyceumController) RenderJSONError

func (c LyceumController) RenderJSONError(err error) revel.Result

RenderJSONError will render a generic error message in JSON format.

type Settings

type Settings struct {
	LyceumController
}

Settings controller for managing the application runtime settings.

func (Settings) Index

func (c Settings) Index() revel.Result

Index renders the main settings view.

Jump to

Keyboard shortcuts

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