Documentation ¶
Index ¶
- type HashedPassword
- func (p HashedPassword) Equal(password string) bool
- func (p *HashedPassword) MustUpdate(password string, optionalCost ...int)
- func (p *HashedPassword) Scan(src interface{}) error
- func (p HashedPassword) String() string
- func (p *HashedPassword) Update(password string, optionalCost ...int) error
- func (p HashedPassword) Value() (driver.Value, error)
- type Password
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashedPassword ¶
type HashedPassword struct {
Hashed string
}
func (HashedPassword) Equal ¶
func (p HashedPassword) Equal(password string) bool
func (*HashedPassword) MustUpdate ¶
func (p *HashedPassword) MustUpdate(password string, optionalCost ...int)
func (*HashedPassword) Scan ¶
func (p *HashedPassword) Scan(src interface{}) error
func (HashedPassword) String ¶
func (p HashedPassword) String() string
type Password ¶
type Password struct { HashedPassword Password string `validate:"omitempty,gte=6,lte=72"` }
func (Password) MarshalJSON ¶
func (*Password) MustUpdate ¶
func (*Password) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.