Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = fmt.Errorf("user does not exist") ErrAlreadyExists = fmt.Errorf("user already exists") )
Known errors.
View Source
var ( ErrInvalidPassword = fmt.Errorf("invalid password") ErrUsernameEmpty = fmt.Errorf("username is empty") ErrPasswordEmpty = fmt.Errorf("password is empty") )
Known errors.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
BCryptCost int `yaml:"bcrypt_cost"`
}
Config contains users configuration.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service allows to manage users resource.
func NewService ¶
NewService returns new users service.
Click to show internal directories.
Click to hide internal directories.