Documentation ¶
Index ¶
- Constants
- Variables
- func Init()
- type Api
- type App
- func (c *App) AdvSearch() revel.Result
- func (c *App) Index(arg models.Args) revel.Result
- func (c *App) Insert(quote models.Quote, arg models.Args) revel.Result
- func (c *App) Quote(id int) revel.Result
- func (c *App) Random() revel.Result
- func (c *App) Vote(voteId int, voteType string, arg models.Args) revel.Result
- type Base
- type GorpController
- type Utf8Result
Constants ¶
View Source
const ( POST_THRESHOLD = 30 ERR_POST_THRESHOLD_REACHED = "You have reached your maximum post limit" ERR_MULTIPLE_VOTE = "You may not vote more than once" ERR_ID_NOT_FOUND = "id not found" )
Variables ¶
View Source
var (
Dbm *gorp.DbMap
)
Functions ¶
Types ¶
type Base ¶
type Base struct {
GorpController
}
type GorpController ¶
type GorpController struct { *r.Controller Txn *gorp.Transaction }
func (*GorpController) Begin ¶
func (c *GorpController) Begin() r.Result
func (*GorpController) Commit ¶
func (c *GorpController) Commit() r.Result
func (*GorpController) Rollback ¶
func (c *GorpController) Rollback() r.Result
Click to show internal directories.
Click to hide internal directories.