auth

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: MIT Imports: 3 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 Context added in v0.9.0

type Context interface {
	AuthClaimID() (ID uint, exist bool)
	IUserModel() IUser
	context.ResponseContextor
	context.DataContextor
}

type IUser added in v0.9.0

type IUser interface {
	Scan(userId uint) error
	Value() interface{}
}

type RequestIUser added in v0.9.3

type RequestIUser interface {
	Scan(c Context) (isAbort bool)
	User() IUser
	UserId(c Context) (userId uint, isAbort bool)
}

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 Context) (isAbort bool)

func (*RequestUser) User added in v0.9.0

func (au *RequestUser) User() IUser

func (*RequestUser) UserId added in v0.9.0

func (au *RequestUser) UserId(c 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