Documentation
¶
Overview ¶
Package passwordtypeent provides an ent.Field constructor for github.com/ubgo/passwordtype.HashedPassword columns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Field ¶
Field returns an ent.Field for a HashedPassword column.
- Stored as TEXT (the argon2id PHC string is variable-length).
- Sensitive() set so the value is masked in ent's debug/print output.
For Optional, Immutable, dialect-specific column type, etc., compose directly:
field.String("password").
GoType(passwordtype.HashedPassword{}).
Sensitive().
Optional()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.