Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidLength for password. ErrInvalidLength = errors.New("invalid length") // DefaultLength for password. DefaultLength = Length(64) )
View Source
var Module = fx.Options( fx.Provide(NewGeneratorInput), fx.Provide(NewGenerator), fx.Provide(NewSecure), )
Module for fx.
Functions ¶
func NewGenerator ¶ added in v1.12.2
func NewGenerator(input *password.GeneratorInput) (*password.Generator, error)
NewGenerator for password.
func NewGeneratorInput ¶ added in v1.12.2
func NewGeneratorInput() *password.GeneratorInput
NewGeneratorInput for password.
Types ¶
Click to show internal directories.
Click to hide internal directories.