Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AuthSys ¶
type AuthSys interface {
Authenticate(user, passwd string) (bool, error)
AddUser(user *User) error
UserInfo(user string) (*User, error)
}
func GetAuthSysImpl ¶
func NewFileAuthSys ¶
type FileAuthSys ¶
type FileAuthSys struct {
// contains filtered or unexported fields
}
func (*FileAuthSys) AddUser ¶
func (a *FileAuthSys) AddUser(user *User) error
func (*FileAuthSys) Authenticate ¶
func (a *FileAuthSys) Authenticate(user, passwd string) (bool, error)
Click to show internal directories.
Click to hide internal directories.