Documentation ¶
Index ¶
- type DefaultPaddingService
- type DefaultPasswordGeneratorService
- type DefaultRNGService
- type DefaultSeparatorService
- type DefaultTransformerService
- type DefaultWordListService
- type PaddingService
- type PasswordGeneratorService
- type RNGService
- type SeparatorService
- type TransformerService
- type WordListService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultPaddingService ¶
type DefaultPaddingService struct {
// contains filtered or unexported fields
}
func NewPaddingService ¶
func NewPaddingService(cfg *config.Config, rngSvc RNGService) (*DefaultPaddingService, error)
type DefaultPasswordGeneratorService ¶
type DefaultPasswordGeneratorService struct {
// contains filtered or unexported fields
}
func NewCustomPasswordGeneratorService ¶
func NewCustomPasswordGeneratorService( cfg *config.Config, transformerSvc TransformerService, separatorSvc SeparatorService, paddingSvc PaddingService, wordListSvc WordListService, ) (*DefaultPasswordGeneratorService, error)
func NewPasswordGeneratorService ¶
func NewPasswordGeneratorService( cfg *config.Config, ) (*DefaultPasswordGeneratorService, error)
func (*DefaultPasswordGeneratorService) Generate ¶
func (s *DefaultPasswordGeneratorService) Generate() ([]string, error)
type DefaultRNGService ¶
type DefaultRNGService struct{}
func NewRNGService ¶
func NewRNGService() *DefaultRNGService
func (*DefaultRNGService) Generate ¶
func (s *DefaultRNGService) Generate() (int, error)
func (*DefaultRNGService) GenerateSlice ¶
func (s *DefaultRNGService) GenerateSlice(length int) ([]int, error)
func (*DefaultRNGService) GenerateSliceWithMax ¶
func (s *DefaultRNGService) GenerateSliceWithMax(length, max int) ([]int, error)
func (*DefaultRNGService) GenerateWithMax ¶
func (s *DefaultRNGService) GenerateWithMax(max int) (int, error)
type DefaultSeparatorService ¶
type DefaultSeparatorService struct {
// contains filtered or unexported fields
}
func NewSeparatorService ¶
func NewSeparatorService(cfg *config.Config, rngSvc RNGService) (*DefaultSeparatorService, error)
type DefaultTransformerService ¶
type DefaultTransformerService struct {
// contains filtered or unexported fields
}
func NewTransformerService ¶
func NewTransformerService(cfg *config.Config, rngSvc RNGService) (*DefaultTransformerService, error)
type DefaultWordListService ¶
type DefaultWordListService struct {
// contains filtered or unexported fields
}
func NewWordListService ¶
func NewWordListService(cfg *config.Config, rngSvc RNGService) (*DefaultWordListService, error)
func (*DefaultWordListService) GetWords ¶
func (s *DefaultWordListService) GetWords() ([]string, error)
type PaddingService ¶
type RNGService ¶
type SeparatorService ¶
type TransformerService ¶
type WordListService ¶
Click to show internal directories.
Click to hide internal directories.