Documentation ¶
Index ¶
- Variables
- func InitDB()
- type Account
- func (c Account) AddAppName() r.Result
- func (c Account) AddRenderMode() r.Result
- func (c Account) AddUser() r.Result
- func (c Account) CheckEmail(email, currentEmail string) r.Result
- func (c Account) CheckUserName(username, currentUsername string) r.Result
- func (c Account) ConfirmEmail(token string) r.Result
- func (c Account) DoLogin(user *models.User, remember bool)
- func (c Account) Index() r.Result
- func (c Account) Login() r.Result
- func (c Account) LoginAccount(account, password string, remember bool) r.Result
- func (c Account) Logout() r.Result
- func (c Account) PasswordReset(token string) r.Result
- func (c Account) Recover() r.Result
- func (c Account) Register() r.Result
- func (c Account) RetrieveAccount(email string) r.Result
- func (c Account) SaveUser(user models.User, username, name string) r.Result
- type Application
- type GorpController
- type Post
- func (c Post) Create(username string) r.Result
- func (c Post) Delete(username string, id int) r.Result
- func (c Post) Edit(username string, id int) r.Result
- func (c Post) Like(username string, id int) r.Result
- func (c Post) Remove(username string, id int) r.Result
- func (c Post) Save(username string, post models.Post) r.Result
- func (c Post) Show(username string, id int) r.Result
- func (c Post) Update(username string, id int, post models.Post) r.Result
- type Profile
- func (c Profile) CommitPassword(user *models.User, password string) error
- func (c Profile) FollowUser(username string) r.Result
- func (c Profile) Followers(username string, page int) r.Result
- func (c Profile) Following(username string, page int) r.Result
- func (c Profile) Password(username string) r.Result
- func (c Profile) Settings(username string) r.Result
- func (c Profile) Show(username string) r.Result
- func (c Profile) UpdatePassword(username string, password, verifyPassword string) r.Result
- func (c Profile) UpdateSettings(username string, profile *models.Profile, verifyPassword string) r.Result
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Dbm *gorp.DbMap
)
Functions ¶
Types ¶
type Account ¶
type Account struct {
GorpController
}
func (Account) AddRenderMode ¶
Add .isDesktopMode to ViewArgs
func (Account) CheckUserName ¶
func (Account) LoginAccount ¶
type Application ¶
type Application struct { *r.Controller Account }
func (Application) About ¶
func (c Application) About() r.Result
func (Application) Contact ¶
func (c Application) Contact() r.Result
func (Application) Index ¶
func (c Application) Index() r.Result
func (Application) SwitchToDesktop ¶
func (c Application) SwitchToDesktop() r.Result
func (Application) SwitchToMobile ¶
func (c Application) SwitchToMobile() r.Result
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
type Profile ¶
type Profile struct {
Account
}
func (Profile) CommitPassword ¶
func (Profile) UpdatePassword ¶
Click to show internal directories.
Click to hide internal directories.