models

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLogInsert

func AccessLogInsert(dbmap *gorp.DbMap, accessLog AccessLog) error

func StageInsertIfNotExists

func StageInsertIfNotExists(dbmap *gorp.DbMap, stage Stage) (bool, error)

ステージ情報を追加する bool = 追加が行われたかどうか error = 追加処理時に発生したエラー(エラーがないときはnil)

func StageIsExists

func StageIsExists(dpmap *gorp.DbMap, stage Stage) bool

指定したステージ情報がすでに保存されているかどうか

Types

type AccessLog

type AccessLog struct {
	Id        int64     `db:"id"`
	Action    string    `db:"action"`
	ClientID  string    `db:"clientid"`
	Host      string    `db:"host"`
	UserAgent string    `db:"useragent"`
	Uptime    time.Time `db:"uptime"`
}

アクセスログ情報

func AccessLogCreate

func AccessLogCreate(action string, clientId string, request *revel.Request) AccessLog

func AccessLogSelect

func AccessLogSelect(dbmap *gorp.DbMap, startTime time.Time, endTime time.Time) []AccessLog

func AccessLogSelectToday

func AccessLogSelectToday(dbmap *gorp.DbMap) []AccessLog

type Stage

type Stage struct {
	Id        int64     `db:"id" json:"id"`
	Name      string    `db:"name" json:"name"`
	Rule      string    `db:"rule" json:"rule"`
	MatchType string    `db:"matchtype" json:"matchtype"`
	ImageURL  string    `db:"imageurl,size:1024" json:"imageurl"`
	StartTime time.Time `db:"starttime" json:"starttime"`
	EndTime   time.Time `db:"endtime" json:"endtime"`
}

ステージ情報

func StageSelectAll

func StageSelectAll(dbmap *gorp.DbMap) []Stage

現在保存されているステージ情報をすべて取得する

func StageSelectCurrentLater

func StageSelectCurrentLater(dbmap *gorp.DbMap) []Stage

現在時刻以降のステージ情報を取得する

func StageSelectLast

func StageSelectLast(dbmap *gorp.DbMap) []Stage

最後のステージ情報を取得する

func StageSelectNow

func StageSelectNow(dbmap *gorp.DbMap) []Stage

現在時刻のステージ情報を取得する

Jump to

Keyboard shortcuts

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