auth

package
v0.0.0-...-b1f09d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAnonymousUser

func GenerateAnonymousUser() auth.User

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

func (u *User) GetById(id interface{}) error

GetById will populate a user_service object from a database model with a matching id.

func (*User) IsAuthenticated

func (u *User) IsAuthenticated() bool

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) Module

func (u *User) Module() string

func (*User) RoleId

func (u *User) RoleId() int

func (*User) TraceGetUserById

func (u *User) TraceGetUserById(id uint64) *User

func (*User) UniqueId

func (u *User) UniqueId() interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL