auth

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	AuthClaimID() (ID uint, exist bool)
	IUserModel() IUser
}

type IUser

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

type RequestIUser

type RequestIUser interface {
	ScanUser() error
	User() IUser
	UserId() (userId uint, err error)
	ScanUserWithJSON() (isAbort bool)
}

type RequestUser

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

func (*RequestUser) ScanUser

func (au *RequestUser) ScanUser() error

func (*RequestUser) SetContext

func (au *RequestUser) SetContext(c Context)

func (*RequestUser) User

func (au *RequestUser) User() IUser

func (*RequestUser) UserId

func (au *RequestUser) UserId() (userId uint, err error)

type UserNotExistError

type UserNotExistError struct{}

func (UserNotExistError) Error

func (e UserNotExistError) Error() string

type UserNotLoginError

type UserNotLoginError struct{}

func (UserNotLoginError) Error

func (e UserNotLoginError) Error() string

Jump to

Keyboard shortcuts

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