Documentation ¶
Index ¶
- Variables
- type Auth
- func (a *Auth) AddUser(custnum uint64, passwd string, cost int) (err error)
- func (a *Auth) Authenticate(custnum, passwd string) (cid uint64, err error)
- func (a *Auth) ChangePassword(custnum uint64, passwd string) (err error)
- func (a *Auth) DeleteUser(custnum uint64) (err error)
- func (a *Auth) List() (uhs []userHash, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotOpen = errors.New("AuthModule not ready") ErrNotFound = errors.New("user id not found") ErrEmptyLine = errors.New("Empty password line") ErrInvalidHashCost = errors.New("password line has an invalid hash cost") ErrCorruptLine = errors.New("passwd line is corrupt") ErrInvalidUser = errors.New("Invalid user") ErrCustnumExists = errors.New("userid already exists") )
Functions ¶
This section is empty.
Types ¶
type Auth ¶
func NewAuthModule ¶
func (*Auth) Authenticate ¶
func (*Auth) ChangePassword ¶
func (*Auth) DeleteUser ¶
Click to show internal directories.
Click to hide internal directories.