Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
UserService holds users
func NewUserService ¶
func NewUserService() *UserService
NewUserService creates a ready to use user service.
func (*UserService) Add ¶
func (us *UserService) Add(name, password string) error
Add validates a user password and creates a new user.
func (*UserService) ValidatePassword ¶
func (us *UserService) ValidatePassword(name, providedPwd string) error
ValidatePassword checks the provided password of an existing user.
func (*UserService) ValidateUser ¶
func (us *UserService) ValidateUser(name string) error
ValidateUser checks the provided username belongs to an existing user.
Click to show internal directories.
Click to hide internal directories.