auth

package
v0.8.1-hotfix-4 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CONTEXT_REQUEST_USER_KEY = "TOTOVAL_CONTEXT_REQUEST_USER"

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestUser added in v0.9.0

type RequestUser struct {
	// contains filtered or unexported fields
}

func (*RequestUser) Scan added in v0.9.0

func (au *RequestUser) Scan(c *gin.Context) (isAbort bool)

func (*RequestUser) User added in v0.9.0

func (au *RequestUser) User() model.IUser

func (*RequestUser) UserId added in v0.9.0

func (au *RequestUser) UserId(c *gin.Context) (userId uint, isAbort bool)

type UserNotExistError added in v0.8.1

type UserNotExistError struct{}

func (UserNotExistError) Error added in v0.8.1

func (e UserNotExistError) Error() string

type UserNotLoginError added in v0.8.1

type UserNotLoginError struct{}

func (UserNotLoginError) Error added in v0.8.1

func (e UserNotLoginError) Error() string

Jump to

Keyboard shortcuts

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