auth

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UsernameField   = "username"
	PasswordField   = "password"
	AuthFailedError error
)

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	authenticate.Guard
}

type Service

type Service struct {
}

func (Service) Register

func (s Service) Register(app *framework.App) error

Register service when app starting, before http server start you can configure service, prepare global vars etc. running at main goroutine

type UserProvider

type UserProvider struct {
	DB *gorm.DB
}

func NewUserProvider

func NewUserProvider(db *gorm.DB) *UserProvider

func (*UserProvider) Attempt

func (*UserProvider) FindUserById

Jump to

Keyboard shortcuts

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