Documentation ¶
Index ¶
Constants ¶
View Source
const ( NotificationStatusNew = iota NotificationStatusRead NotificationStatusDismissed )
View Source
const ( NotificationTypeComment = iota NotificationTypeContact )
Variables ¶
This section is empty.
Functions ¶
func GenerateSlug ¶
func GetSettingsMap ¶
Types ¶
type Authenticable ¶
type Category ¶
type Comment ¶
type Media ¶
type Notification ¶
type Notification struct { Id int Message string `orm:"size(255)"` Type int64 Status int64 CreatedAt time.Time UpdatedAt time.Time }
func (*Notification) TableName ¶
func (this *Notification) TableName() string
type Page ¶
type Page struct { Id int Title string `orm:"size(100)"` Tagline string `orm:"size(100);null"` Slug string `orm:"size(100);null"` Content string `orm:"type(text)"` ContentType string `orm:"size(100)"` Published bool `orm:default(false)` Description string `orm:"type(text)"` Keywords string `orm:"size(100)"` CreatedAt time.Time UpdatedAt time.Time Photo string `orm:"null"` }
type Post ¶
type Post struct { Id int Title string `orm:"size(100)"` Tagline string `orm:"size(100);null"` Slug string `orm:"size(100);null"` Content string `orm:"type(text)"` ContentType string `orm:"size(100)"` Published bool `orm:default(false)` Description string `orm:"type(text)"` Keywords string `orm:"size(100)"` CreatedAt time.Time UpdatedAt time.Time Photo string `orm:"null"` Category *Category `orm:"rel(fk);null"` Author *User `orm:"rel(fk)"` Comments []*Comment `orm:"reverse(many)"` }
type Setting ¶
func GetSetting ¶
type User ¶
type User struct { Id int Username string `orm:"size(100);unique"` Password string `orm:"size(100)"` Salt string `orm:"size(10)"` }
func GetUserByName ¶
func (*User) CheckPassword ¶
func (*User) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.