Documentation ¶
Index ¶
- Variables
- func InitDB()
- type App
- type GormController
- type List
- type Page
- func (ctrl Page) Diff(pageName string, revisionID string) revel.Result
- func (ctrl Page) Index() revel.Result
- func (ctrl Page) Modify(pageName string) revel.Result
- func (ctrl Page) Revisions(pageName string) revel.Result
- func (ctrl Page) Save(pageName string) revel.Result
- func (ctrl Page) Show(pageName string) revel.Result
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DB *gorm.DB
)
Functions ¶
Types ¶
type GormController ¶
type GormController struct { *revel.Controller // contains filtered or unexported fields }
func (*GormController) Begin ¶
func (ctrl *GormController) Begin() revel.Result
Start a transaction on request
func (*GormController) Commit ¶
func (ctrl *GormController) Commit() revel.Result
Commit the transaction at the end of the request
func (*GormController) Rollback ¶
func (ctrl *GormController) Rollback() revel.Result
Abandon transaction when abnormal
Click to show internal directories.
Click to hide internal directories.