Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidLen = errors.New("invalid length")
ErrInvalidLen indicates that the password's length is not supported.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller controls the password generation.
func (*Controller) Generate ¶
func (c *Controller) Generate(preq *models.PasswordReq) (*models.PasswordResp, error)
Generate handles the password's request and generates the password, which satisfies the requirements.
Click to show internal directories.
Click to hide internal directories.