controllers

package
v0.0.0-...-264c5dd Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2016 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//DbMap DB操作用オブジェクト
	DbMap *gorp.DbMap
)

Functions

func InitDB

func InitDB()

InitDB DBの初期化(オープン/テーブル生成)

func UpdateStageFromIkaring

func UpdateStageFromIkaring() bool

UpdateStageFromIkaring イカリングからステージ情報を取得してDBに保存する return bool 更新を行ったときはtrue

func UpdateStageFromNawabari

func UpdateStageFromNawabari() bool

UpdateStageFromNawabari ステージ情報を取得してDBに保存する return bool 更新を行ったときはtrue

Types

type App

type App struct {
	GorpController
}

func (App) Index

func (c App) Index() revel.Result

type GorpController

type GorpController struct {
	*revel.Controller
	Transaction *gorp.Transaction
}

GorpController 操作用コントローラー(各コントローラはこの構造体を組み込む)

func (*GorpController) Begin

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

Begin トランザクション開始(コントローラー処理時に内部で呼ぶため明示的に呼び出す必要なし)

func (*GorpController) Commit

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

Commit トランザクションをコミット(コントローラー処理時に内部で呼ぶため明示的に呼び出す必要なし)

func (*GorpController) Rollback

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

Rollback トランザクション処理のロールバック(コントローラー処理時に内部で呼ぶため明示的に呼び出す必要なし)

type Stage

type Stage struct {
	GorpController
}

Stage 構造体

func (Stage) CurrentLater

func (c Stage) CurrentLater(id string) revel.Result

CurrentLater 現在時刻以降開催しているステージ情報を取得する(現在時刻を含む)

func (Stage) Now

func (c Stage) Now(id string) revel.Result

Now 現在開催しているステージ情報を取得する

Jump to

Keyboard shortcuts

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