auth

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 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 int64, exist bool)
	IUserModel() IUser
}

type IUser

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

type RequestIUser

type RequestIUser interface {
	ScanUser() error
	User() IUser
	UserId() (userI int64, 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 int64, 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