Documentation ¶
Overview ¶
Package identity provides types for capturing and validating an identity check.
Index ¶
- Variables
- type Status
- func (i Status) IsConfirmed() bool
- func (i Status) IsExpired() bool
- func (i Status) IsFailed() bool
- func (i Status) IsInsufficientEvidence() bool
- func (i Status) IsUnknown() bool
- func (i Status) MarshalText() ([]byte, error)
- func (i Status) String() string
- func (i *Status) UnmarshalText(text []byte) error
- type StatusOptions
- type UserData
Constants ¶
This section is empty.
Variables ¶
View Source
var StatusValues = StatusOptions{ Unknown: StatusUnknown, Confirmed: StatusConfirmed, Failed: StatusFailed, InsufficientEvidence: StatusInsufficientEvidence, Expired: StatusExpired, }
Functions ¶
This section is empty.
Types ¶
type Status ¶ added in v0.1259.0
type Status uint8
func ParseStatus ¶ added in v0.1259.0
func (Status) IsConfirmed ¶ added in v0.1259.0
func (Status) IsInsufficientEvidence ¶ added in v0.1259.0
func (Status) MarshalText ¶ added in v0.1259.0
func (*Status) UnmarshalText ¶ added in v0.1259.0
type StatusOptions ¶ added in v0.1259.0
type UserData ¶
type UserData struct { Status Status FirstNames string LastName string DateOfBirth date.Date CurrentAddress place.Address // RetrievedAt records when identity information was taken from OneLogin. RetrievedAt time.Time // VouchedAt records when a voucher confirmed the identity information, if the // donor is getting someone to vouch for them. VouchedAt time.Time }
Click to show internal directories.
Click to hide internal directories.