Documentation ¶
Index ¶
- Variables
- func InitDB()
- type App
- type Category
- func (c Category) Add(category models.Category) revel.Result
- func (c Category) Delete(id int) revel.Result
- func (c Category) Edit(id int) revel.Result
- func (c Category) Filter(name string, omit int) revel.Result
- func (c Category) GetCategories(exclusion *int) []interface{}
- func (c Category) Index(page int) revel.Result
- func (c Category) New() revel.Result
- func (c Category) Update(category models.Category) revel.Result
- type GorpController
- type Language
- func (c Language) AddLanguage(language models.Language) revel.Result
- func (c Language) Delete(id int) revel.Result
- func (c Language) Edit(id int) revel.Result
- func (c Language) Index(page int) revel.Result
- func (c Language) New() revel.Result
- func (c Language) UpdateLanguage(language models.Language) revel.Result
- type Quote
- func (c Quote) Add(quote models.QuoteVM) revel.Result
- func (c Quote) CreateGetTagStatement(slugs []string) string
- func (c Quote) CreateInsertTagStatement(tags []string, slugs []string) string
- func (c Quote) GetLanguages(exclusion *int) []interface{}
- func (c Quote) New() revel.Result
- func (c Quote) Slug(tags []string) []string
- type Tag
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Dbm *gorp.DbMap
)
Functions ¶
Types ¶
type GorpController ¶
type GorpController struct { *revel.Controller Txn *gorp.Transaction }
func (*GorpController) Begin ¶
func (c *GorpController) Begin() revel.Result
func (*GorpController) Commit ¶
func (c *GorpController) Commit() revel.Result
func (*GorpController) GetCount ¶
func (c *GorpController) GetCount(table string) int
func (*GorpController) Rollback ¶
func (c *GorpController) Rollback() revel.Result
type Language ¶
type Language struct {
GorpController
}
type Quote ¶
type Quote struct {
GorpController
}
func (Quote) CreateGetTagStatement ¶
func (Quote) CreateInsertTagStatement ¶
func (Quote) GetLanguages ¶
Click to show internal directories.
Click to hide internal directories.