Documentation
¶
Overview ¶
Provides models for controllers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTagModel ¶
func (*AddTagModel) Post ¶
func (i *AddTagModel) Post() (err error)
Post will add the reply to the database with a transaction
func (*AddTagModel) Status ¶
func (i *AddTagModel) Status() (err error)
Status will return info about the thread
func (*AddTagModel) ValidateInput ¶
func (i *AddTagModel) ValidateInput() (err error)
ValidateInput will make sure all the parameters are valid
type EmailModel ¶
EmailModel contains new email
func (*EmailModel) Validate ¶
func (r *EmailModel) Validate() (err error)
Validate will check the provided email
type FavoritesModel ¶
func (*FavoritesModel) Post ¶
func (i *FavoritesModel) Post() (err error)
Post will add the fav to the database
func (*FavoritesModel) Status ¶
func (i *FavoritesModel) Status() (err error)
Status will return info
func (*FavoritesModel) ValidateInput ¶
func (i *FavoritesModel) ValidateInput() (err error)
ValidateInput will make sure all the parameters are valid
type NewTagModel ¶
func (*NewTagModel) Post ¶
func (i *NewTagModel) Post() (err error)
Post will add the reply to the database with a transaction
func (*NewTagModel) Status ¶
func (i *NewTagModel) Status() (err error)
Status will return info about the thread
func (*NewTagModel) ValidateInput ¶
func (i *NewTagModel) ValidateInput() (err error)
ValidateInput will make sure all the parameters are valid
type PasswordModel ¶
Password contains information for initial account creation
func (*PasswordModel) Validate ¶
func (r *PasswordModel) Validate() (err error)
Validate will check the provided password
type RegisterModel ¶
Register contains information for initial account creation
func (*RegisterModel) Validate ¶
func (r *RegisterModel) Validate() (err error)
Validate will check the provided name length and email
type ReplyModel ¶
type ReplyModel struct { Uid uint Ib uint Thread uint Ip string Comment string Filename string Thumbnail string MD5 string OrigWidth int OrigHeight int ThumbWidth int ThumbHeight int Image bool }
func (*ReplyModel) Post ¶
func (i *ReplyModel) Post() (err error)
Post will add the reply to the database with a transaction
func (*ReplyModel) Status ¶
func (i *ReplyModel) Status() (err error)
Status will return info about the thread
func (*ReplyModel) ValidateInput ¶
func (i *ReplyModel) ValidateInput() (err error)
ValidateInput will make sure all the parameters are valid
type ThreadModel ¶
type ThreadModel struct { Uid uint Ib uint Ip string Title string Comment string Filename string Thumbnail string MD5 string OrigWidth int OrigHeight int ThumbWidth int ThumbHeight int }
func (*ThreadModel) Post ¶
func (i *ThreadModel) Post() (err error)
Post will add the thread to the database with a transaction
func (*ThreadModel) ValidateInput ¶
func (i *ThreadModel) ValidateInput() (err error)
ValidateInput will make sure all the parameters are valid