Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAnonymousUser ¶
GetAnonymousUser should generate an anonymous user_service model for all sessions. This should be an unauthenticated 0 value struct.
Types ¶
type User ¶
type User struct { models.User `xorm:"extends"` model.Model `xorm:"-"` // contains filtered or unexported fields }
func (*User) GetById ¶
GetById will populate a user_service object from a database model with a matching id.
func (*User) IsAuthenticated ¶
func (*User) Login ¶
func (u *User) Login()
Login will preform any actions that are required to make a user_service model officially authenticated.
func (*User) Logout ¶
func (u *User) Logout()
Logout will preform any actions that are required to completely logout a user_service.
func (*User) TraceGetUserById ¶
Click to show internal directories.
Click to hide internal directories.