value_object

package
v0.0.0-...-173271a Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identifier

type Identifier ulid.ULID

func NewIdentifier

func NewIdentifier() Identifier

func NewIdentifierFrom

func NewIdentifierFrom(rawId string) (id Identifier, err error)

func (Identifier) Equals

func (id Identifier) Equals(otherId Identifier) bool

func (Identifier) MarshalText

func (id Identifier) MarshalText() ([]byte, error)

func (Identifier) String

func (id Identifier) String() string

func (*Identifier) UnmarshalText

func (id *Identifier) UnmarshalText(text []byte) error

type PasswordHash

type PasswordHash string

func NewPasswordHash

func NewPasswordHash(rawPassword string) PasswordHash

func (PasswordHash) String

func (passwordHash PasswordHash) String() string

func (PasswordHash) Verify

func (passwordHash PasswordHash) Verify(rawPassword string) bool

Jump to

Keyboard shortcuts

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