Documentation ¶
Index ¶
- Variables
- type ConfigDB
- type UserStore
- func (s *UserStore) AddUser(user core.User, password string) (string, error)
- func (s *UserStore) DeleteByUsername(username string) error
- func (s *UserStore) FindAll() ([]core.User, error)
- func (s *UserStore) FindByUsername(username string) (core.User, error)
- func (s *UserStore) FindByUsernamePassword(username string, password string) (core.User, error)
- func (s *UserStore) UpdatePassword(username string, password string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadPassword = errors.New("bad password")
View Source
var ErrNoPassword = errors.New("user has no password")
View Source
var ErrNoUsername = errors.New("username does not exist")
Functions ¶
This section is empty.
Types ¶
type ConfigDB ¶
func NewConfigDB ¶
type UserStore ¶
type UserStore struct {
// contains filtered or unexported fields
}
func NewUserStore ¶
func (*UserStore) DeleteByUsername ¶
func (*UserStore) FindByUsername ¶
func (*UserStore) FindByUsernamePassword ¶
Given a username and password, return a user only if the user exists with the given password.
Click to show internal directories.
Click to hide internal directories.