Documentation ¶
Overview ¶
A unified authentication module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserExist = errors.New("User Exist") ErrUserNotExist = errors.New("User Not Exist") ErrWrongPassword = errors.New("Wrong Password") )
View Source
var ErrAuthFailed = errors.New("Authentication Failed")
View Source
var ErrNoMatchedPublicKey = errors.New("No Matched Public Key")
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication interface { // Auth should return with (username, err). Auth(url.Values) (string, error) }
Authentication just means knowing who you are.
type AuthenticationList ¶
type AuthenticationList []Authentication
func (AuthenticationList) Auth ¶
func (al AuthenticationList) Auth(params url.Values) (user string, err error)
func (AuthenticationList) Of ¶
func (al AuthenticationList) Of(t reflect.Type) Authentication
Click to show internal directories.
Click to hide internal directories.