sqlauth

package
v0.0.0-...-aaf6028 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginDB

type LoginDB struct {
	DB *sql.DB
}

func (*LoginDB) AuhtUser

func (l *LoginDB) AuhtUser(user, password []byte, h *fastnntp.Handler) (postauth.AuthRank, bool, *fastnntp.Handler)

func (*LoginDB) AuhtUserLite

func (l *LoginDB) AuhtUserLite(user, password []byte) (postauth.AuthRank, bool)

func (*LoginDB) CheckUser

func (l *LoginDB) CheckUser(user []byte) bool

func (*LoginDB) CreateSqlModel

func (l *LoginDB) CreateSqlModel(d *sqlutil.Dialect) error

func (*LoginDB) InsertUser

func (l *LoginDB) InsertUser(user, password []byte, rank postauth.AuthRank) error

func (*LoginDB) UpdateUserPassword

func (l *LoginDB) UpdateUserPassword(user, password []byte) error

func (*LoginDB) UpdateUserRank

func (l *LoginDB) UpdateUserRank(user []byte, rank postauth.AuthRank) error

Jump to

Keyboard shortcuts

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