application

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplication

func NewApplication(passGenEntity entity.PasswordGenerator, passGenRepo repository.Repository, passService service.Service) *passwordGeneratorApp

Types

type PasswordGeneratorApp

type PasswordGeneratorApp interface {
	GeneratePasswordByLength(length int, passCharacters []rune) (string, error)
	GeneratePassword(password *entity.PasswordGen) (*entity.PasswordGen, error)
	Validate(body []byte) error
}

type PasswordGeneratorDB

type PasswordGeneratorDB interface {
	GetLastTenPasswords() ([]*entity.PasswordGen, error)
	SavePasswordGen(*entity.PasswordGen) (*entity.PasswordGen, error)
	PasswordExists(password string) (bool, error)
}

Jump to

Keyboard shortcuts

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