controls

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 10 Imported by: 0

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 New

func New() *Controller

New constructs the Controller.

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.

func (*Controller) Init

func (c *Controller) Init(cfg *config.DBConfig) error

Init initializes all services.

func (*Controller) Stop

func (c *Controller) Stop() error

Stop stops all connections.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL