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: 4 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 Admin

type Admin struct {
	models.Admin `xorm:"extends"`

	model.Model `xorm:"-"`
	// contains filtered or unexported fields
}

func (*Admin) GetById

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

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

func (*Admin) IsAuthenticated

func (u *Admin) IsAuthenticated() bool

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

func (u *Admin) Module() string

func (*Admin) RoleId

func (u *Admin) RoleId() int

func (*Admin) TraceGetUserById

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

func (*Admin) UniqueId

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

Jump to

Keyboard shortcuts

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