auth

package
v0.0.0-...-0f1ebe4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthPlain

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

func NewAuthPlain

func NewAuthPlain(file, hashMethod string) (*AuthPlain, error)

func (*AuthPlain) Check

func (a *AuthPlain) Check(username, password string) (bool, error)

func (*AuthPlain) Close

func (a *AuthPlain) Close() error

func (*AuthPlain) GetName

func (a *AuthPlain) GetName() string

func (*AuthPlain) Init

func (a *AuthPlain) Init() error

type AuthSQL

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

func NewAuthSQL

func NewAuthSQL(dbType, dbConnection string, dbMaxConnections int, hashMethod string, cacheTimeout int64, querySelectUser string) (*AuthSQL, error)

func (*AuthSQL) Check

func (a *AuthSQL) Check(username, password string) (bool, error)

func (*AuthSQL) Close

func (a *AuthSQL) Close() error

func (*AuthSQL) GetName

func (a *AuthSQL) GetName() string

func (*AuthSQL) GetUserFromCache

func (a *AuthSQL) GetUserFromCache(username string) (string, bool)

func (*AuthSQL) Init

func (a *AuthSQL) Init() error

func (*AuthSQL) PutUserToCache

func (a *AuthSQL) PutUserToCache(username, hashedPassword string)

Jump to

Keyboard shortcuts

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