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 Admin ¶
type Admin struct { models.Admin `xorm:"extends"` model.Model `xorm:"-"` // contains filtered or unexported fields }
func (*Admin) GetById ¶
GetById will populate a user_service object from a database model with a matching id.
func (*Admin) IsAuthenticated ¶
func (*Admin) Login ¶
func (u *Admin) Login()
Login will preform any actions that are required to make a user_service model officially authenticated.
func (*Admin) Logout ¶
func (u *Admin) Logout()
Logout will preform any actions that are required to completely logout a user_service.
func (*Admin) TraceGetUserById ¶
Click to show internal directories.
Click to hide internal directories.