domain

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package domain is where the main software entities are.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Password

type Password struct {
	// contains filtered or unexported fields
}

Password is the principal entity.

func NewPassword

func NewPassword(value string) *Password

func (*Password) GetValue

func (p *Password) GetValue() string

func (*Password) IsValid

func (p *Password) IsValid() (bool, error)

IsValid is used to validate the entity. It returns if the password is valid and any validation error encountered.

func (*Password) SetValue

func (p *Password) SetValue(value string)

type PasswordInterface

type PasswordInterface interface {
	GetValue() string
	SetValue(value string)
	IsValid() (bool, error)
}

type PasswordServiceInterface

type PasswordServiceInterface interface {
	Validate(password PasswordInterface) bool
}

Jump to

Keyboard shortcuts

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