controllers

package
v0.0.0-...-1b422df Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2015 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB gorm.DB
)

Functions

func InitDB

func InitDB()

自動マイグレーションを行う

Types

type App

type App struct {
	GormController
}

func (App) ForwardAction

func (c App) ForwardAction(methodName string)

func (App) Index

func (c App) Index() revel.Result

type GormController

type GormController struct {
	*revel.Controller
	// contains filtered or unexported fields
}

func (*GormController) Begin

func (c *GormController) Begin() revel.Result

リクエスト時にトランザクションを開始する

func (*GormController) Commit

func (c *GormController) Commit() revel.Result

リクエスト終了時にトランザクションを確定する

func (*GormController) Rollback

func (c *GormController) Rollback() revel.Result

異常時にトランザクションを破棄する

type List

type List struct {
	App
}

func (List) Index

func (c List) Index() revel.Result

ページ一覧を表示する

type Page

type Page struct {
	App
	NeedRecaptcha bool
}

func (Page) Diff

func (c Page) Diff(pageName string, revisionId string) revel.Result

指定したリビジョンIDとその直前のリビジョンの差分を表示する Ajaxでリクエストされることを前提とする

func (Page) Modify

func (c Page) Modify(pageName string) revel.Result

ページを編集する

func (Page) Revisions

func (c Page) Revisions(pageName string) revel.Result

ページのリビジョン一覧を表示する

func (Page) Save

func (c Page) Save(pageName string) revel.Result

ページの登録もしくは更新を行う

func (Page) Show

func (c Page) Show() revel.Result

ページを表示する

Jump to

Keyboard shortcuts

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